JavaScript Fundamentals

JavaScript brings webpages to life. You can update the DOM, respond to user actions, process data, and connect with external APIs.

Logic DOM Events

Key Concepts

Variables and Data Types

Store and update values using let and const for strings, numbers, arrays, and objects.

Functions

Encapsulate reusable logic and call it with different inputs.

DOM and Events

Select elements, update content, and react to clicks, typing, and form submissions.

JavaScript Quiz

Answer all questions and click submit to see your score.

1. Which keyword creates a block-scoped variable?

2. What does DOM stand for?

3. Which method selects an element by id?

4. Which event fires when a button is pressed?

5. Which array method creates a new array of transformed values?