Fearlessย โขย 2m
๐ 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
Fearlessย โขย 2m
๐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 MoreFearlessย โขย 1m
๐ 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 MoreDownload the medial app to read full posts, comements and news.