1. Preliminary

JavaScript is only a language; to get it to accomplish something meaningful on a webpage, you need to leverage APIs provided by the browser in it.