Common JavaScript Manual/How read this book

From Wikibooks, open books for an open world
Jump to: navigation, search

Optional arguments[edit]

Optinal variables enclosed in square brackets. For example Array.join([separator])

Variable in description[edit]

In function description variables are bolded. For example Math.sqrt(num) - square root of num

Undefined number of arguments[edit]

Undefined number of arguments in function written as name... and function description name are all these variables in general, and name[n] either name. For example Array.concat(elements...) - returns array that containg elements from Array and elements if elements[n] is array then to the array that returns are added all elements from elements[n].