Skip to content
JavaScript Fundamentals

Introduction to JavaScript

Beginner Lesson 1 of 10

JavaScript is the programming language of the web, enabling interactive and dynamic websites.

  • Universal - Runs in every web browser
  • Full-Stack - Frontend, backend (Node.js), mobile, desktop
  • Large Ecosystem - npm has over 2 million packages
  • High Demand - One of the most sought-after skills
// In the browser console or a .js file
console.log("Hello, World!");
// Variables
let name = "Alice";
const age = 25;
// Function
function greet(person) {
return `Hello, ${person}!`;
}
console.log(greet(name)); // Hello, Alice!
  1. Open DevTools (F12)
  2. Go to Console tab
  3. Type JavaScript and press Enter
Terminal window
# Install from nodejs.org
node --version
# Run a file
node script.js
# Interactive mode
node