What is the scope of variables in javascript? Do they have the same scope inside as opposed to outside a function? Or does it even matter? Also, where are the variables stored if they are defined globally?
转载于:https://stackoverflow.com/questions/500431/what-is-the-scope-of-variables-in-javascript