Image credit: https://c1.staticflickr.com/
* It is generally simple to learn and includes sentence structure that is near english
* It is generally quick to the end client
* Stretched out usefulness to pages On the off chance that you utilize a site and require a sure component to be incorporated, you can compose it yourself
You don’t need to enter a parameter for the function. You can use the function’s arguments/parameters just as if they are “array-like object”.
You can easily return more than one variable using index or array type notation . This features eases
the returning of more than one variable to the function.Very handy in many cases.
var msg= “Hello!”;
var nam= “Adeel”;
var [msg,nam] = myFunction(); // quite easy!