+ 5

Window Object :

Is it Reliable to use "window." before all variables in JS. For example: var a = "Hello" x = console.log(a); y = console.log(window.a); How x differs from y in above code ?

23rd Oct 2018, 11:23 AM
Googel
Googel - avatar
2 Respostas
23rd Oct 2018, 12:24 PM
jtrh
jtrh - avatar
+ 1
That is a bad way
15th Nov 2018, 4:13 PM
Nejat Mhango
Nejat Mhango - avatar