Skip to content Skip to sidebar Skip to footer
Showing posts with the label Prototype

Javascript "this" Losing Context In Ie

The following works fine in firefox/safari/chrome, in IE, 'this' appears to be losing conte… Read more Javascript "this" Losing Context In Ie

"value Below Was Evaluated Just Now", What Does It Mean?

Folks! I am trying to list down what happens behind the scenes when new keyword is used to create a… Read more "value Below Was Evaluated Just Now", What Does It Mean?

Extending Object Literal

var x = { name: 'japan', age: 20 } x.prototype.mad = function() { alert('US… Read more Extending Object Literal

Why Doesn't Any Object Prototype Work As A Foreach Callback?

Rather than a question, I just wanted it to be a challenge but couldn't find an answer yet. For… Read more Why Doesn't Any Object Prototype Work As A Foreach Callback?

Transposing A Javascript Array Efficiently

I wrote this method to transpose a javascript array Array.prototype.transpose = function () { le… Read more Transposing A Javascript Array Efficiently

Add A Rounding Method To Number.prototype In Javascript

How can I simplify rounding in JavaScript? I wish that I could do it in a more elegantly in an obje… Read more Add A Rounding Method To Number.prototype In Javascript