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 />

Example<br />

Try the following example program.<br />

<br />

<br />

JavaScript Math LN10 Property<br />

<br />

<br />

<br />

var property_value = Math.LN10<br />

document.write("Property Value is : " + property_value);<br />

<br />

<br />

<br />

Output<br />

Property Value is : 2.302585092994046<br />

Math-LOG2E<br />

It returns the base 2 logarithm of E which is approximately 1.442.<br />

Syntax<br />

Its syntax is as follows:<br />

Math.LOG2E<br />

Example<br />

Try the following example program.<br />

<br />

<br />

JavaScript Math LOG2E Property<br />

<br />

<br />

<br />

278

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

Saved successfully!

Ooh no, something went wrong!