Chapter 24


Question 24 is giving be big problems, I typed my programm in and it does not work. it asks to create a variable called myAge ; and I typed var "myAge" = "20"; but it does not work. Can someone explain the right code to use and why?


When you define a variable, you should not be putting quotes around it. Quotes are used to indicate strings.

  1. remove the quotes from your variable name
  2. and also remove them from 20. In this case 20 is meant to be a number not a string of the two characters "2" and "0"


@albionsrefuge Thanks four help, It really helped.
Are you a student or a tecaher?


We're both actually, all of us volunteer our time to help on the forums, but we take the courses like anybody else.