10.02.2018 Views

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

In the following sections, we will have a few examples to demonstrate the usage<br />

of Math properties.<br />

Math-E<br />

This is an Euler's constant and the base of natural logarithms, approximately<br />

2.718.<br />

Syntax<br />

Its syntax is as follows:<br />

Math.E<br />

Example<br />

Try the following example program.<br />

<br />

<br />

JavaScript Math E Property<br />

<br />

<br />

<br />

var property_value = Math.E<br />

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

<br />

<br />

<br />

Output<br />

Property Value is :2.718281828459045<br />

276

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

Saved successfully!

Ooh no, something went wrong!