10.07.2017 Views

javascript_tutorial

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

Javascript<br />

Returns the primitive value of the specified number object.<br />

Example<br />

Try the following example.<br />

<br />

<br />

JavaScript valueOf() Method <br />

<br />

<br />

<br />

var num = new Number(15.11234);<br />

document.write("num.valueOf() is " + num.valueOf());<br />

<br />

<br />

<br />

Output<br />

num.valueOf() is 15.11234<br />

128

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!