what is script mean? A script is a series of instructions that a computer can follow to achieve a goal.
a script is just a series of short instructions, each of which is performed in order to solve the problem in hand. This is why creating a script is like writing a recipe or manual that allows a computer to solve a puzzle one step at a time.
hint
it need to fpllow instruction
**initialization steps: 1: DEFINE THE GOAL 2: DESIGN THE SCRIPT 3: CODE EACH STEP **
Just like learning any new language, you need to get to grips with the: • Vocabulary: The words that computers understand • Syntax: How you put those words together to create instructions computers can follow computer achieves different types of goals using a programmatic approach to problem-solving. Computers are very logical and obedient
see several ways to discover what might have gone wrong - programmers call this debugging
an example statements that are required to needs to perform in order to of a function in the JavaScript answer a question or perform a perform its task are packaged file. It is called updateMessage () . to create a function give it name and then write the statements we need inside the curly braces known as fun ctiom
___________
Remember that programming
and when they are required. Some functions need to be languages often rely upon on
For example, you might have provided with information in name/value pairs. The function
a task that you only want to order to achieve a given task. For has a name, updateMessage,
perform if the user clicks on a example, a function to calculate and the value is the code block
specific element in the page. the area of a box would need (which consists of statements).
to know its width and height. When you call the function by its
If you are going to ask the Pieces of information passed name, those statements will run.
ASSIGNMENT OPERATORS var color = ‘beige’;
ARITHMETIC OPERATORS var area = 3 * 2;
color = ‘beige’;
STRING OPERATORS greeting= ‘Hi 1 + ‘Mol ly’;
LOGICAL OPERATORS buy= (5 > 3) && (2 < 4);