In this post I will cover the following topics: Understanding how the prototype works Using the prototype for inheritance The Inherit Function Overriding methods In one of my previous post i talked about Object Oriented Javascript , where i mostly talked about class encapsulation. In this post i would like to advance to another important [...]
Problog In this post I will cover the following topics: Understanding debug requirements Using the Mozilla preferences service to store debug mode Using Mozilla file I/O to write debug messages into a file In one of me recent post I’ve talked about how to setup a development environment in Firefox. One of the problems in [...]
Problog This post will cover the following topics: Javascript is not a toy! How to define a class How to set Publich methods How to set Private variables How to set static methods JavaScript for Dummies? Programming languages are like football teams – it doesn’t matter which you like, you will support it and protect [...]
In one of the projects that I’m working on I had to setup a property of an object in a general way. In order to do so, i wrote the following function: function setValue(key,value,obj){ obj[key.toString()] = value; } so calling the functuion like so var obj = { a:1,b:2,c:3 }; setValue( "a" , 2 , [...]
Problog This post cover the following topics: Song of the post Code for testing Javascript engine Results Song of the Post – James Blackshaw – Cross I decided to combine my two favorite things – javascript and music. So I’ll try to add a song which either i listened to during the writing of the [...]