JavaScript is the language that makes websites alive! It helps you build games, animations, quizzes, and cool things on the internet. Ready to become a coder? 💻
Imagine your favorite website — YouTube, games, online quizzes. JavaScript makes them move, click, and respond. It's like adding magic powers to a plain webpage! ✨
Build your own mini games and play with friends!
Buttons that work, quizzes that score, animations that dance!
No need to install anything. Just type and see it run!
Used by every website in the world. A super skill to have!
Don't worry if these words sound new! We'll learn them step by step. 🐢
Like boxes that hold your stuff — names, numbers, or anything!
Like recipes. Write once, use many times!
Making smart choices: "If it rains, take an umbrella!"
When something happens — like a click or a key press.
Let's start with something every coder does — saying "Hello" to the world! 👋
console.log() is like telling the computer to print a message on the screen. Think of it as the computer's talking machine! 🗣️
// symbol makes a comment — notes for humans that the computer ignores!A variable is like a labeled box where you can store things. You give the box a name, and put something inside!
For example, a box called name can hold "Riya", and a box called age can hold 12.
let → for things that can change (like your age next year)const → for things that stay the same (like your birthday)A function is like a recipe. You write the steps once, and then use it whenever you want!
Imagine your mom wrote down how to make a sandwich. Now anyone can follow the recipe anytime! 🥪
Every day you make decisions: "If it's raining, I'll take an umbrella. Else, I'll wear sunglasses!" ☔😎
JavaScript uses if and else to make decisions too! Let's grade a student's marks:
marks = 75 to different numbers like 95, 60, or 30. See what happens!An event is something that happens — like clicking a button, pressing a key, or moving the mouse. 🖱️
JavaScript can listen for these events and do something fun when they happen!
Let's build a simple score counter — like the score in a video game! Every time you "score a point", the number goes up! 🏅
bonus() that adds 5 points at once? Try it!Let's see how much you learned! Pick the best answer for each question. 🧠
console.log() do? 🖨️
Check the boxes as you finish each lesson. Watch your progress bar fill up! 🌈
Awesome job reaching here! 🎉 Here are some fun things you can do next: