June 2018
Beginner
288 pages
6h 31m
English
Calling functions is arguably one of the most frequent tasks you’ll do when programming. As an author of a function, you have to decide on the parameters to receive. As a caller of a function, you have to pass the right arguments. And, from the extensibility and flexibility point of view, you may want functions to receive variable numbers of arguments. From the beginning, JavaScript is one of those few languages that has supported a variable number of arguments. But that support was very spotty—the syntax was unclear and inconsistent.
Modern JavaScript brings a breath of fresh air both for defining functions and for calling functions.
Now, when defining functions you can clearly and unambiguously convey ...
Read now
Unlock full access