JavaScript Beginner Day 1: Introduction to JavaScript

Goal of this Day

Today you will learn:

By the end, you will be able to run your first JavaScript code in the browser.

Step 1: What is JavaScript?

JavaScript is a programming language used to make websites interactive.

Examples:

Step 2: How JavaScript Works in the Browser

JavaScript runs directly in your browser (like Chrome, Firefox, or Edge).

It works together with:

Step 3: Using the Console

The console is a tool in your browser for testing JavaScript code.

Open it:

Example:


console.log("Hello, World!");

This prints text to the console.

Practice


console.log("Hello, World!");

Task

Try this yourself:

Example:


console.log("My name is Alex");
console.log("I am 18 years old");