Back

Shubham

Fearless • 29d

🚀 Day 08/21 – JavaScript Events Sorry for the 1-day gap 🙏, but back on track with my 21-day JavaScript learning journey Today I learned about Events – actions that happen in the browser (clicks, key presses, scrolls, etc.), which we can capture and respond to using JavaScript. Example: // Select button let btn = document.getElementById("myBtn"); // Add event listener btn.addEventListener("click", () => { alert("Button Clicked!"); }); 👉 Events bring interactivity 👉 addEventListener is the modern way to handle them 👉 You can listen to clicks, keydowns, mouse moves, and more! Events make web apps dynamic & user-friendly ✨ #21JavaScript #JavaScript #WebDevelopment #CodingJourney #LearnInPublic

Reply
1
10

More like this

Recommendations from Medial

Shubham

Fearless • 1m

🚀Day 06/21 – JavaScript DOM (Document Object Model) Today’s focus was on DOM – the way JavaScript interacts with web pages. 🌐 👉 DOM represents HTML as a tree structure. 👉 With JS, we can select, modify, and create elements dynamically. Example

See More
Reply
9

Shubham

Fearless • 1m

🚀 Day 1/21 – My JavaScript Learning Journey I’ve started my 21-day challenge to learn and share JavaScript daily. 🔹 Today’s focus: Basics, Variables, and Data Types Variables: var, let, const (different scopes & usage). Data Types: 7 primitive

See More
Reply
2

Shubham

Fearless • 1m

Day 05/21 – JavaScript Functions & Methods Today I explored one of the most powerful concepts in JavaScript: Functions & Methods. 🚀 🔹 Functions are blocks of code designed to perform a specific task. They help in reusability and make code cleaner

See More
Reply
1

Shubham

Fearless • 28d

Day 09/21 – JavaScript Classes & Objects Today I explored Classes & Objects in JavaScript – the building blocks of Object-Oriented Programming (OOP). 🚀 🔹 Objects = collections of data & methods 🔹 Classes = blueprints to create objects Example:

See More
Reply
8

Shubham

Fearless • 27d

Day 10/21 – JavaScript: Callback, Promise & Async/Await Today I learned how JavaScript handles asynchronous tasks like API calls, file loading, or timers. ⚡ 🔹 Callback – a function passed into another function function fetchData(cb) { setTimeou

See More
Reply
1
Image Description
Image Description

Shubham

Fearless • 19d

🙏 Sorry for the gap in my 21-day JavaScript learning journey! I was on a short trip – had the blessed opportunity to visit: Ujjain (Mahakal Darshan) Indore Khatu Shyam Ji (Rajasthan) and explored Mandafiya (Rajasthan) ✨ Now I’m back, refreshed and r

See More
3 Replies
12

Shubham

Fearless • 18d

Day 11/21 – JavaScript API Calls 🌐 Today I explored how to fetch data from APIs in JavaScript using async/await. Copy code Javascript async function getUsers() { try { let response = await fetch("https://jsonplaceholder.typicode.com/users");

See More
Reply
2

Shubham

Fearless • 1m

🚀 Day 2 of 21 – JavaScript Learning Journey Topic: Operations & Conditional Statements 🔹 Operations in JavaScript Arithmetic: + - * / % Assignment: = += -= Comparison: == === != > < >= <= Logical: && || ! 🔹 Conditional Statements // if sta

See More
1 Reply
1
16

Shubham

Fearless • 1m

🚀 Day 4/21 – My JavaScript Learning Journey Today’s focus: Arrays in JavaScript 📦 An Array is a special object in JS used to store multiple values in a single variable. 🔹 Creating Arrays let fruits = ["Apple", "Banana", "Mango"]; 🔹 Common Me

See More
Reply
3

Shubham

Fearless • 1m

🚀 Day 3/21 – My JavaScript Learning Journey Today I explored two core concepts: Loops & Strings. 🔹 Loops in JavaScript for → classic loop with index. while → runs until a condition is true. do...while → executes at least once. for...of → best

See More
Reply
2

Download the medial app to read full posts, comements and news.