Shivam Keshari’s Post

🚀 From Confusion → Clarity (JavaScript Learning Moment) Today I finally understood one of the most confusing topics in JavaScript: 👉 "this" keyword with Arrow Functions vs Regular Functions At first, it made ZERO sense 😵 But after practicing, here’s what clicked: ✅ Regular functions → "this" depends on how they are called ✅ Arrow functions → don’t have their own "this", they inherit it from parent scope 💡 This small difference can completely change your output — especially inside "setTimeout()" and callbacks! Sharing this because I know many beginners struggle with this (just like I did 🙌) 📍 Still learning. Still growing. One step closer to becoming a Full Stack Developer. #JavaScript #WebDevelopment #CodingJourney #FullStackDeveloper #100DaysOfCode #LearningInPublic

  • No alternative text description for this image

To view or add a comment, sign in

Explore content categories