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).
- we ** call ** the function when we want it to make the sentences.
- When we want the Function to be flexible, we use the parameters.
- When we want the return something to use, we use the Return.
- when we need to call function we will use the * 'name+(parameters"if there are")' *.
parameters like a var
- A
- What is a script and how do i create one?
- B
- How do computers fit in with the world around them?
- C
- How do I write a script for a web page?
Divide the infidel problem into small problems that you can solve.
- know what the steps! and what next.
- Computers approach tasks differently, so your instructions must let the computer solve the task.
- We have many Operators
-
-
-
- /
- ==
- !=
- !==
- ===
- <
-
- <=
-
=
-
- The priority of parentheses must be observed'()'
- from left to right
like: (var == '1' && var < '10')



