Every story and comment from the Hacker News API, in a layout borrowed from 2001.
A comment on Loyal Opposition to Const, Private, Freeze, Non-Configurable, Non-Writable.... Parent comment
function A { var secret = 0; // <---------- private variable this.method = function() { alert(secret); }; this.increment = function() { secret++; }; } a = new A(); a.increment(); a.method(); <-------- prints 1
Edit: Hence, the keyword.
There are no comments on this comment yet.
Edit: Hence, the keyword.