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

alert("Value of bigNumber : " + bigNumber );<br />

}<br />

}<br />

//--><br />

<br />

<br />

<br />

Click the following to see the result:<br />

<br />

<br />

<br />

<br />

<br />

Output<br />

Click the following to see the result:<br />

Click Me<br />

Value of val : Infinity<br />

Prototype<br />

The prototype property allows you to add properties and methods to any object<br />

(Number, Boolean, String and Date etc.).<br />

Note: Prototype is a global property which is available with almost all the<br />

objects.<br />

Syntax<br />

Use the following syntax to use Prototype.<br />

object.prototype.name = value<br />

Example<br />

118

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

Saved successfully!

Ooh no, something went wrong!