JavaScript is a very forgiving language. It’s easy to write code that runs but has mistakes in it.
In this article, we’ll look at using the spread syntax for calling functions and the use of template strings instead of using string concatenation.
Using Spread Syntax Instead of .apply()
The spread syntax lets us call functions with an array spread into a comma-separated list of arguments in our function.
It’s a lot easier than the old way, where we have to call apply method on a function with an array of arguments to call a function with many arguments.

#javascript #programming #web-development

Use extended syntax for function calls and use sample strings in Javascript
1.05 GEEK