This document provides an introduction to JavaScript including:
- JavaScript is the most popular programming language for adding interactivity to web pages.
- It is embedded directly into HTML and is case-sensitive.
- JavaScript can change HTML content, attributes, styles, validate data, and display pop-ups.
- The <script> tag is used to insert JavaScript into HTML. Scripts can go in the head or body.
- External JavaScript files allow code reuse across pages and improve performance.
- JavaScript outputs can be written to alerts, the page, elements, and the console.
- Variables, data types, operators, functions, conditional statements, loops, arrays and events are also introduced.