✨ 𝗗𝗮𝘆 62 – #𝟭𝟬𝟭𝗗𝗮𝘆𝘀𝗢𝗳𝗖𝗼𝗱𝗶𝗻𝗴 ✨ On Day 62, I focused on understanding the await keyword in JavaScript ⚡💻 Today I learned how await pauses the execution of an async function until a Promise is resolved, making asynchronous code easier to read and manage. 🔧 What I understood today: 👉 await works only inside an async function 👉 It waits for a Promise to resolve before moving forward 👉 It makes asynchronous code look like synchronous code 👉 It improves readability compared to chaining multiple .then() 👉 Helps in handling API calls more cleanly Before learning await, asynchronous code felt like jumping between steps. Now it feels more structured and readable. 💡 Learning of the Day: await doesn't block the whole program. It only pauses the async function it is inside. Understanding this difference is very important in modern JavaScript. Day 62 complete ✅ Still learning. Still improving. 🚀 #javascript #asyncawait #webdevelopment #learninginpublic #codingjourney #101DaysOfCoding #frontend #developerlife #growthmindset
JavaScript await keyword explained for async code
More Relevant Posts
-
Day 2/30 — Stuck in the “learning JavaScript” loop? Ever felt like you’re learning JS daily… but still can’t build anything on your own? Same here. You watch tutorials, understand concepts like promises, async/await, DOM — everything makes sense… until you open a blank file. Then suddenly: nothing. That’s the trap. Watch → Understand → Feel productive → Don’t build → Forget → Repeat It feels like progress, but it’s not. Real learning starts when things break: - your code doesn’t run - your logic fails - you spend 30 mins fixing one bug That frustration? That’s growth. So I’m changing one thing: Less watching, more building. Even if it’s messy. 👉 Be honest — what’s stopping you from building right now? Tried my Best today and practised 3X for grasping fast now will implement in next programs #30DaysOfBuilding #JavaScript #WebDevelopment #BuildInPublic
To view or add a comment, sign in
-
-
📚 JavaScript Call Stack — Explained Without Code Imagine studying with a stack of books. You start Book A → It tells you to check Book B → Book B sends you to the Dictionary… Now you have a stack. You must finish the top book first before going back. 👉 That’s exactly how the JavaScript Call Stack works. ⚡ New function → Pushed onto the stack ✅ Finished task → Popped off the stack Rule: 🧠 Last In → First Out (LIFO) JavaScript has one desk and can do one task at a time. And yes… this is where the famous “Stack Overflow” error comes from 😄 Which concept confused you most while learning JavaScript? 1️⃣ Call Stack 2️⃣ Execution Context 3️⃣ Event Loop 4️⃣ Async / Promises Comment your number 👇 Let’s learn together 🚀 #JavaScript #WebDevelopment #Frontend #CodingConcepts #LearnInPublic #Developers #TechExplained
To view or add a comment, sign in
-
-
learned something interesting. I’ve been using ?. in my JavaScript code quite often to safely access nested properties, but today I realized it’s actually called Optional Chaining. const city = user?.address?.city; Small feature, but it saves us from many undefined errors. Learning something new even from things we already use daily is always satisfying. #javascript #webdevelopment #frontenddevelopment #learning
To view or add a comment, sign in
-
🚀 Day 89 of My #100DaysOfCode Challenge I thought JavaScript automatically manages memory… so we don’t have to worry about it, right? 🤔 Wrong. Today I learned about something most beginners ignore — Garbage Collection in JavaScript. 💡 What actually happens? JavaScript automatically removes unused memory using something called Garbage Collection. It works on a simple idea: 👉 If something is not reachable, it gets removed from memory. 🧠 Example let user = { name: "Tejal" }; user = null; // now previous object becomes unreachable Now JavaScript will automatically clean this memory. --- ⚠️ But here’s the real problem… Even with automatic memory cleanup, memory leaks can still happen. Some common reasons: • Unused event listeners • Closures holding references • Global variables not cleared --- 💭 What I realized I used to think memory management is not my problem as a developer… But now I understand: 👉 Writing clean code also means not holding unnecessary memory --- JavaScript handles a lot for us… but understanding what’s happening behind the scenes makes a huge difference. Learning something new every day 💻✨ #Day89 #100DaysOfCode #JavaScript #WebDevelopment #CodingJourney #LearningInPublic
To view or add a comment, sign in
-
-
Day 2 of my JavaScript learning journey. Everyone says: “Just use let and const, never var.” Today I finally understood why. Variables already managed to confuse me once. Here’s what I explored today. Variables in JavaScript: -Variables store data so we can use it later in our program. There are three ways to create them: 1️⃣ var The old way. It’s function-scoped and gets hoisted, which can sometimes cause confusing behavior. 2️⃣ let Modern and block-scoped. You can change the value later. let score = 10; score = 20; 3️⃣ const Also block-scoped, but the value cannot be reassigned. const name = "Shobhit"; One interesting thing I learned: Even if a variable is declared with const, objects inside it can still be modified. Another surprising discovery: typeof null returns "object". This is actually a long-standing JavaScript bug from the early days of the language. It stayed because changing it would break too many websites. My rule going forward: Use const by default. Use let when the value needs to change. Avoid var. Day 2 done. Slowly understanding how JavaScript actually works. What confused you the most when you first learned JavaScript? #JavaScript #LearningInPublic #WebDevelopment #100DaysOfCode #Frontend
To view or add a comment, sign in
-
-
🚀 Saturday Learning Update - JavaScript Asynchronous Programming Previous Saturday’s class was focused on understanding JavaScript Promises and Async/Await- a crucial concept for handling asynchronous operations in modern web development. Here’s what I learned: 🔹 What a Promise is and why it’s needed 🔹 Promise states – Pending, Fulfilled, Rejected 🔹 Creating Promises using the Promise constructor 🔹 Consuming Promises with .then() and .catch() 🔹 Writing cleaner asynchronous code using async and await 🔹 Error handling with try...catch Understanding how Promises solve the problem of callback hell was a big clarity moment. Even more interesting was seeing how async/await makes asynchronous code look and behave like synchronous code — making it more readable and maintainable. Every session is helping me strengthen my JavaScript fundamentals and think more logically about how things work behind the scenes. #JavaScript #WebDevelopment #LearningInPublic
To view or add a comment, sign in
-
-
🚀 Just Published My New Blog! I’ve written a beginner-friendly guide on Control Flow in JavaScript — covering: ✅ What control flow means ✅ if statement ✅ if-else statement ✅ else-if ladder ✅ switch statement If you're learning JavaScript, this will help you understand decision-making in code clearly. 🔗 Read here: https://lnkd.in/d9RNEYNy Feedback is always welcome! 🙌 #JavaScript Hitesh Choudhary Piyush Garg Akash Kadlag Jay Kadlag Anirudh Jwala Chai Aur Code
To view or add a comment, sign in
-
Understanding the difference between var, let, and const is one of those foundational concepts in JavaScript that significantly impacts code quality. Early in my learning journey, I often used var without fully understanding its behavior. Over time, I realized how scope and hoisting can lead to unexpected issues if not handled carefully. Here’s a simple approach I follow now: • Use const by default for safer and predictable code • Use let when reassignment is required • Avoid var in modern development Adopting these practices has helped me write cleaner, more maintainable code and avoid subtle bugs. Sometimes, it’s the fundamentals that make the biggest difference in how we build and scale applications. #javascript #webdevelopment #frontenddevelopment #codingbestpractices #softwaredevelopment
To view or add a comment, sign in
-
-
💡 Most developers write JavaScript every day… But very few know how JavaScript actually runs behind the scenes. Today I learned about the JavaScript V8 Engine and it completely changed how I think about JS execution. Here’s the simple idea: ⚡ JavaScript runs inside an engine called V8 And it mainly works using three components: 🧠 Memory Heap Stores variables and objects in memory. 📚 Call Stack Keeps track of which function is currently executing. 🧹 Garbage Collector Automatically removes unused memory to keep applications efficient. When this simple code runs: var a = 1078698; var b = 20986; function multiplyFn(x, y) { const result = x * y; return result; } var c = multiplyFn(a, b); Here’s what happens internally: 1️⃣ Variables are stored in the Memory Heap 2️⃣ The function gets pushed into the Call Stack 3️⃣ The function executes and returns the result 4️⃣ The Garbage Collector cleans unused memory Understanding how JavaScript works internally helps developers write better and more optimized code. 🚀 Still learning something new about JavaScript every day. ❓ What other JavaScript internals do you think every developer should learn? #javascript #webdevelopment #frontenddeveloper #v8engine #programming #learninginpublic
To view or add a comment, sign in
-
-
🔑 JavaScript `this` Cheatsheet Confused by how `this` works in JavaScript? You're not the only one. That's why we created this cheatsheet to help you sort `this` out. We'll cover `this` in: 🌍 Global context 🔧 Function calls 🏠 Object methods 🏗️ Classes ➡️ Arrow functions 📞 Explicit binding (`call`, `apply`, `bind`) 🖱️ Event handlers Save & share with your team! Download Our Free Full-Stack Developer Starter Kit ➡️ https://buff.ly/JbI0Qof --- If you found this guide helpful, follow TheDevSpace | Dev Roadmap, w3schools.com, and JavaScript Mastery for more tips, tutorials, and cheat sheets on web development. Let's stay connected! 🚀 #WebDevelopment #CheatSheet #Coding #CSS #Filters #UI #Frontend
To view or add a comment, sign in
Explore content categories
- Career
- Productivity
- Finance
- Soft Skills & Emotional Intelligence
- Project Management
- Education
- Technology
- Leadership
- Ecommerce
- User Experience
- Recruitment & HR
- Customer Experience
- Real Estate
- Marketing
- Sales
- Retail & Merchandising
- Science
- Supply Chain Management
- Future Of Work
- Consulting
- Writing
- Economics
- Artificial Intelligence
- Employee Experience
- Workplace Trends
- Fundraising
- Networking
- Corporate Social Responsibility
- Negotiation
- Communication
- Engineering
- Hospitality & Tourism
- Business Strategy
- Change Management
- Organizational Culture
- Design
- Innovation
- Event Planning
- Training & Development