JavaScript allow you to to makeweb pages more interactive by accessin and modifying the content and markup use in web page while it's being viewed in the browser
Computers approach tasks in a different way than humans, so your instructions must let the computer solve the task prggrammatically. 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)
- ACCESS CONTENT
- MODIFY CONTENT
- PROGRAM RULES
- REACT TO EVENTS
An expression evaluates into (results in) a single value. Broadly speaking there are two types of expressions.
-
EXPRESSIONS THAT JUST ASSIGN A VALUE TO A VARIABLE
-
EXPRESSIONS THAT USE TWO OR MORE VALUES TO RETURN A SINGLE VALUE