/

HTML / CSS / JavaScript Tutorial

JavaScript Number method: valueOf()

[this page | pdf | back links]

The valueOf() method (when applied to JavaScript numbers) returns the primitive value of the number (i.e. itself).

 

It has the following syntax (with no parameters):

 

number.valueOf()

 


NAVIGATION LINKS
Contents | Prev | Next | JavaScript Numbers and Math


Desktop view | Switch to Mobile