24. Variables


#1

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"

console.log(myAge);


#2

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


#3

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


#4

var MyAge = "grace"

console.log(myAge);

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";
console.log(MyAge);

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,