On and Off explainer

Aim of the puzzle: Declare a new variable.
Walk through of solution: The code contains a variable named on that has a value of 1. In this puzzle, you’ll add another variable named off that has a value of 0.

To complete this puzzle, create a new variable named off and assign it a value of 0. Then, print the variable using console.log(off).

This is the first time you need to type out an entire variable declcaration on your own, so don’t forget to type:

  • The let keyword
  • The name of the variable, on
  • The assignment operator, =
  • The value of the variable, 0

Sample code solution:

let on = 1;
console.log(on);

let off = 0;
console.log(off);

Javascript Concepts: variables, numbers, console.log(), assignment operator