namaste-javascript-notes

Episode 5 : Shortest JS Program, window & this keyword

eg:

var x = 10;
console.log(x); // 10
console.log(this.x); // 10
console.log(window.x); // 10

Watch Live On Youtube below:

Shortest JS Program, window & this keyword Youtube Link