Chapter 4. Preparation
A good preparation phase is a crucial step in creating simple, efficient scripts. Before writing a single line of code, you must make many decisions, most importantly about the cooperation between the HTML and CSS on the one hand and the JavaScript on the other. You also must know how to insert scripts in your HTML pages, and how to make sure they run at the right time.
The purpose of the preparation phase is to fix the basic outline of your scripts in your head (or on paper, or in a document, whatever works best for you). If you already know the rough shape your script is going to take, your actual coding hours can be spent on detail decisions and problems. Conversely, if you don’t prepare, you might find after a few days ...
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