Drycodez Posted September 1, 2011 Share Posted September 1, 2011 What is the valueOf() method use for? can somebody give me an EXAMPLE? Link to comment Share on other sites More sharing options...
justsomeguy Posted September 1, 2011 Share Posted September 1, 2011 It returns a primitive value for something like an object. With a Date object, for example, it returns the Unix timestamp. You can use the Date object to format the date however you want, but the underlying value of the date is the timestamp. Link to comment Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.