⚑ The JavaScript Universe ⚑

Exploring the power of JavaScript β€” the language that brings websites to life. πŸš€

πŸ’‘ What Is JavaScript?

JavaScript is the language of interactivity. It lets you manipulate the content, behavior, and appearance of a website dynamically.

β€œWith JavaScript, the web is alive.”

🧩 Basics

Variables, data types, and operators are the building blocks.


// Variables
let name = "Dyl";
const pi = 3.14;

// Operators
let sum = 2 + 3;
console.log(sum); // 5
  

βš™οΈ Functions

Functions let you group reusable code:


function greet(user) {
  return `Hello, ${user}!`;
}
console.log(greet("Dyl"));
  

🌌 DOM Manipulation

JavaScript can change HTML dynamically:


document.getElementById("demo").textContent = "Hello, Universe!";
  
Try Me!

πŸ•ΉοΈ Try It Yourself

Write your JavaScript code below and click "Run":