3 ms·
People coming to JS from other languages often ask how to create private variables, the answer is to use a local variable and closure. And with ES5 you can also
by z3t4 8y ago
People coming to JS from other languages often ask how to create private variables, the answer is to use a local variable and closure.
And with ES5 you can also use defineProperty