User-Defined Functions part 1

JavaScript Functions



A JavaScript function is a block of code designed to perform a particular task.
The main advantages of using functions:
Code reuse: Define the code once, and use it many times.
Use the same code many times with different arguments, to produce different results.
A JavaScript function is executed when "something" invokes, or calls, it.
What is a function?

Profession
Arithmetical term
A certain block of code that can be reused over and over again

Comments

Popular posts from this blog

Introducing object part 3

Comparison Operators part 2

Module 2