valueOf and toString
Friday July 10, 2009
There are two methods that all JavaScript objects have.
Every object that you define in JavaScript has at least two methods available - valueOf() and toString(). These methods will return a variable that contains the value of the object or a string equivalent of the object. In most cases these are exactly the same but there are a few object types where they are not.
valueOf and toString


No comments yet. Leave a Comment