+ 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 ?
2 ответов
+ 3
+ 1
That is a bad way
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 ?