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, ...
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Read now
Unlock full access