The variable scope in javascript can still surprise me. This is a nice one I debugged today: A variable that is not defined by “var” have a global scope. This can be a real pain since the globalization is implicit and easy to forget. I forgot the “var” when writing a for loop and could [...]
Categories
Recent Posts
More Info