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"."
Asked
Active
Viewed 89 times
-5
-
1the same as "*assign initial value*". – PM 77-1 Feb 05 '18 at 18:19
-
1Welcome 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 Answers
0
var chameleon ="lizard";
Follow these links for further details
Clear explanation on declaration and initialization of javascript variables

BAKARI SHEGHEMBE
- 449
- 6
- 20