Function parameters part 1

Function Parameters



Functions can take parameters
Function parameters are the names listed in the function's definition.

Syntax:
functionName(param1, param2, param3) {
// some code
}

As with variables, parameters should be given names, which are separated by commas within the parentheses.

Comments

Popular posts from this blog

Comparison Operators part 2

Break and Continue part 1

Module 2