-5

I am required to initialize a variable in JavaScript 5. The exact instructions are "Declare a variable chameleon and initialize it to the string "lizard"."

  • 1
    the same as "*assign initial value*". – PM 77-1 Feb 05 '18 at 18:19
  • 1
    Welcome to Stack Overflow! Please take the [tour], look around, and read through the [help], in particular [*How do I ask a good question?*](/help/how-to-ask) Assignments aren't usually arbitrary; your instructor, tutorial, or course will have covered the necessary topics to make it possible for you to do this. **Review your course materials, class notes, etc.,** and try to do the work. This is **extremely** basic, and will be covered. – T.J. Crowder Feb 05 '18 at 18:19

2 Answers2

0

Just use

var chameleon = "lizard";
Jakob
  • 214
  • 1
  • 2
  • 15
0
var chameleon ="lizard";

Follow these links for further details

Clear explanation on declaration and initialization of javascript variables

Use full link for learning and testing javascript

BAKARI SHEGHEMBE
  • 449
  • 6
  • 20