Today you will learn:
console.log())By the end, you will be able to run your first JavaScript code in the browser.
JavaScript is a programming language used to make websites interactive.
Examples:
JavaScript runs directly in your browser (like Chrome, Firefox, or Edge).
It works together with:
The console is a tool in your browser for testing JavaScript code.
Open it:
F12Example:
console.log("Hello, World!");
This prints text to the console.
console.log("Hello, World!");
Try this yourself:
F12)Example:
console.log("My name is Alex");
console.log("I am 18 years old");