How can I create a new constructor that will alert the increment value? Any suggestions on how to achieve this?
This is the current code snippet:
var increment = new Increment();
alert(increment); /* 1 */
alert(increment); /* 2 */
alert(increment + increment); /* 7 */