Trying out a doubt

What is happening in the video ?

Try using var x = 10

Some real code

console.log('hello');