This beginner lesson is part of a JavaScript course identified as a 2020 edition. It connects JavaScript to HTML, which structures a page, and CSS, which styles it. The source video is described as an 8-hour course, but the available lesson material may not represent the full video.
Topics covered
- How JavaScript works with a web page
- Output examples such as
console.log,alertanddocument.write - Writing comments, declaring variables and recognizing data types
- Using data to change what appears in a page
A short practice exercise
Choose one example and identify three parts: the value stored in a variable, the instruction that uses it, and the result shown in the browser or console. Change the value and observe how the result changes.
Some examples come from an older lesson. Check the surrounding context and current documentation before using an API or coding pattern in a real project.
Read next
MDN: JavaScript Guide covers syntax, declarations, data types, control flow, functions and collections. For page structure and styles, see MDN: HTML and MDN: CSS.
Continue with CSS selectors and stylesheets or Components and JSX in React 17.