24. Variables


Create a variable called myAge and type in your age. This is my code what am I missing?
// To create a variable, we use only one equals sign
// But to check if two values are equal, we use 3 equal signs.

// declare your variable here:
var MyAge = "grace"



Well it asked you to put in your age and you gave it a string not an integer.


so how do I do that? Sorry just starting out.


var MyAge = "grace"


javascript is case sensitive. You created a variable called "MyAge" where you stored grace.
To access the value of your variable, you used "myAge".
Your code should be;
var MyAge = "grace";

P.S In your task tho, i think they require an integer, but your input is a string.
for the purpose of completing the task,