Ajax-loader-large-white
Animate Your Name
Variables

So far, we've been typing in strings, numbers, and booleans into the editor. To do more complex coding, we need a way to "save" these values. We can do this using variables. A variable stores a string, number, or boolean, and gives it a specific, case-sensitive name.

Examples:

  • var myName = "Beyonce";
  • var myAge = 32;
  • var isEven = true
Instructions

In line 1, create a variable called myName and type in your name.

main.js
index.html
project
View Preview