A SCRIPT IS A SERIES OF INSTRUCTIONS
A script is a series of instructions that a computer can follow to achieve a goal. You could compare scripts to any of the following:
RECIPES
By following the instructions in a recipe, one-by-one in the order set out, cooks can create a dish they have never made before.
Some scripts are simple and only deal with one individual scenario, like a simple recipe for a basic dish. Other scripts can perform many tasks, like a recipe for a complicated three-course meal.
Another similarity is that, if you are new to cooking or programming, there is a lot of new terminology to learn.
HANDBOOKS
Large companies often provide handbooks for new employees that contain procedures to follow in certain situations.
For example, hotel handbooks may contain steps to follow in different scenarios such as when a guest checks in, ...
Get JavaScript and JQuery: Interactive Front-End Web Development now with the O’Reilly learning platform.
O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.