• Is this true for variables declared without any initiating keyword before them as well? Is x = 42; the same as var x = 42; in that regard?

    No... if you don't have var in a function it's defined as a global variable :)

About

Avatar for Ganblejs @Ganblejs started