4 ms·
The ability to hide stuff sort of takes the "script" out of Javascript.
by euroclydon 16y ago
The ability to hide stuff sort of takes the "script" out of Javascript.
- sid0 16y agoWhat do you mean by that? A closure like function foo() { var x = 0; return function () { return x++; } } and the equivalent in Python/Ruby/any language with closures hides x even better than a private member in Java would.