3 ms·
You can :) Number.prototype.amIFive = function(){ return this.valueOf() == 5; } 5..amIFive();
by Softcadbury 12y ago
You can :)
Number.prototype.amIFive = function(){
return this.valueOf() == 5;
}
5..amIFive();
- dclowd9901 12y agoAh, so you have to have two dots... I suppose the first one denotes the floating point value, and the second denotes the prototype accessor. Very clever.