OOPS in ecma6

Javascript standard varies from ECMA1 to ECMA7. From ECMA5 there introduced class keyword for creation of classes. We have constructor also for the initialisation of object. [crayon-5d61b24b255f3575428924/] Inheritance in ECMA6 :

Default parameter in ECMA6

In ecma 6 we have the concept of default parameter. <html> <script> function add(a,b,c){ console.log(a+b+c) } add(11,45,66); //In ecma6 we have default parameters function add(a,b,c=10){ console.log(a+b+c) } add(11,45); </script> </html>