“var” variables, “this” variables and “global” variables - inside a JavaScript Constructor
问题 After my last question, this one is more accurate for me: example: function Foo() { this.bla = 1; var blabla = 10; blablabla = 100; this.getblabla = function () { return blabla; // exposes blabla outside } } foo = new Foo(); what I understand now: this.bla = 1; // will become an attribute of every instance of FOO. var blabla = 10; // will become a local variable of Foo(will **not** become an attribute of every instance of FOO), which could be accessed by any instance of FOO - only if there's