- Access content
- Modify content
- Add program rules
- React to events
- Slideshows
- Forms
- Reload part of the page
- Filtering data
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.
To approach writing a script, break down your goal into a series of tasks and then work out each step needed to complete that task (a flowchart can help).
- EXPRESSIONS THAT JUST ASSIGN A VALUE TO A VARIABLE *EXPRESSIONS THAT USE TWO OR MORE VALUES TO RETURN A SINGLE-VALUE.
Expressions rely on things called operators; they allow programmers to create a single value from one or more values.
- ASSIGNMENT OPERATORS (=)
- COMPARISON OPERATORS (< , >, ==)
- ARITHMETIC OPERATORS(- , * , / , +)
- LOGICAL OPERATORS(and, or, nor)
- STRING OPERATORS ( + )