Javascript supports different types of OOPS concept. You know basically javascript
is a functional lanugage.
We can make these function to classes and objects as follows:

id=”man1_butt” onClick=”man1.get_name(); man1.get_age();”
value=”Man 1″>
onClick=”man2.get_name(); man2.get_age();” value=”Man 2″>

We can implement inheritance also using javascript. See below the example:

Click Read more for example

________________Thank you___________________