JavaScript Functions

up:: JavaScript Functions are just JS Objects. In that way, they are JS Non-primitives.

Functions

`function add(first,second)

Rest operator

function sortArg(...args) {
	return args.sort();
}

Closures

When a function is defined, JavaScript locks in all variables used in it.