We are on git also : After coming of ES6 / ES2015 , the javascript programming became very secure and fantastic. We can look below the list of new features …
Category: Ecma 6
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. <html> <script> class Employee{ constructor(name,age,sal){//To …
Today we are going to discuss higher methods in ecma6. For this let us take some of examples that will surely operate on array. Ecma6 make uses of fat operator …
ECMA 6 uses the fat operator => for creating the functions. Some of examples are as follows : <html> <script> function add(a,b){ return a+b; } var x1 = add(1,9) console.log(‘The …
Both MAp and set class in ECMA6 is used to maintain the collection of record . MAp supports set method but Set supports add(0 method for pushing new data. get …
Just like the match operator in scala , ECMA6 also comes with matching variables <html> <script> var [a,b] = [11,67,99]; console.log(a+”–“+b); var {fnm : x,lnm : y} = {fnm : …
We can handle n number of parameters with the help of spread in ECMA6.For this we do not need to calaculate how many parametrs has been passed to the function. …
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> …
let operator has local scope in ecma 6. We can achive local scope through the curly braces <html> <script> /*var a = 20; (function(){ var a = 10; console.log(a+”-“) })();//self calling …