10.07.2017 Views

javascript_tutorial

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

Javascript<br />

Syntax<br />

Its syntax is as follows:<br />

Math.SQRT1_2<br />

Example<br />

Try the following example program.<br />

<br />

<br />

JavaScript Math SQRT1_2 Property<br />

<br />

<br />

<br />

var property_value = Math.SQRT1_2<br />

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

<br />

<br />

<br />

Output<br />

Property Value is : 0.7071067811865476<br />

Math-SQRT2<br />

It returns the square root of 2 which is approximately 1.414.<br />

Syntax<br />

Its syntax is as follows:<br />

Math.SQRT2<br />

Example<br />

Try the following example program.<br />

<br />

281

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

Saved successfully!

Ooh no, something went wrong!