Using Multiple Parameters with Functions part 1

Multiple Parameters



You can define multiple parameters for a function by comma-separating them.function myFunc(x, y) {
// some code
}

The example above defines the function myFunc to take two parameters.

Comments

Popular posts from this blog

Introducing object part 3

Comparison Operators part 2

Module 2