Several Scripts, One Page

Plain scripts run top to bottom and share one global space, so the last definition of a name wins; defer and module scripts run after the page is built, and onclick code runs only on a click.

By

Updated

Several Scripts, One Page cheat sheet
Category
JavaScript
Level
Apprentice
Tags
Global Scope, Global Variable (javascript), Inline Event Handler, JavaScript, Script (javascript)