3- Programming Rules You can specify a set of steps for the browser to follow (like a recipe), which allows it to access or change the content of a page.
A script is a series of instructions that a computer can follow to achieve a goal.
To write a script, you need to first state your goal and then list the tasks that need to be completed in order to achieve it.
Start with the big picture of what you want to achieve, and break that down into smaller steps.

An expression evaluates into (results in) a single value. Broadly speaking there are two types of expressions.
1- Expression that just assign a value to a variable:ex var color = ‘beige’;
2- Expression that use two or more values ro return a single value.EX: var area = 3 * 2;
Expressions rely on things called operators; they allow programmers to create a single value from one or more values.

Functions let you group a series of statements together to perform a specific task. If different parts of a script repeat the same task, you can reuse the function (rather than repeating the same set of st atements).
Earlier in this tutorial, you learned that functions are declared with the following syntax:

A JavaScript function is executed when “something” invokes it (calls it).
