Assign a value to a variable

Here, we declare the variable num. But, it has no value yet. Assign a value to it and run the code.
JavaScript
Console