reading-notes

JAVA SCRIPT

SCRIPT :

A script is a series of instructions that a computer can follow to achieve a goal.

  1. What is a script and how do I creat one?
    • A script is a series of instructions that the computer can follow in order to achieve a goal.
    • Each time the script runs, it might only use a subset of all the instructions.
    • 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).
  2. DEFINE THE GOAL

First, you need to define the task you want to achieve. You can think of this as a puzzle for the computer to solve.

  1. DESIGN THE SCRIPT

To design a script you split the goal out into a series of tasks that are going to be involved in solving this puzzle. This can be represented using a flowchart.

  1. **CODE EACH STEP **

Each of the steps needs to be written in a programming language that the compu ter understands. In our case, this is JavaScript.

Note : Computers approach tasks in a different way than humans, so your instructions must let the computer solve the task prggrammatically.

EXPRESSIONS

OPERATORS