Knowledge Walls
Laya
Hyderabad, Andhra Pradesh, India
Number.prototype.valueOf() Method in Number Class of Javascript Syntax with Examples
1267 Views
Usage 
The valueOf() method is used to return the primitive value of a number object
Syntax  
numberObject.valueOf()
Example
	var x = new Number(3);
	document.write(x.valueOf());
	var x = new Number(3.777);
	document.write(x.valueOf());
	var x = new Number(38.777);
	document.write(x.valueOf());

Output 
3
3.777
38.777
Best Lessons of "Javascript Syntax with Examples"
Top lessons which are viewed more times.
  Copyright © 2014 Knowledge walls, All rights reserved
KnowledgeWalls
keep your tutorials and learnings with KnowledgeWalls. Don't lose your learnings hereafter. Save and revise it whenever required.
Click here for more details