Week 1

Nitin kumarNitin kumar
2 min read

🚀 Week 1 – JavaScript Foundations, APIs & Async (Cohort 2.0 Journey)

Hey folks! 👋

I'm starting my #LearnInPublic journey by going through the amazing Cohort 2.0 Full Stack course. This week, I covered:


✅ Topics Covered:

  • JS Basics & Foundations

  • console.log(), var, let, const, scope

  • Browser APIs: window, document, console

  • Event loop, task queues

  • Callback functions and async behavior

  • async/await, promises, and real-world examples


💡 Key Takeaways:

  • JavaScript is single-threaded, but supports async via callbacks and promises

  • console.log() can’t always be trusted to show execution order in async code

  • Use .then() and await for better readability and control

  • The event loop and call stack are essential to understand JS behavior


🧩 Problems I Faced

Honestly, I struggled a lot with callback functions and promises early on. Understanding how the execution flowed and how .then() or async/await actually work took me time.
I kept getting confused between callback hell, the order of console.log(), and how promises resolved.

But after:

  • Rereading notes multiple times

  • Writing small code snippets repeatedly

  • Using GPT for debugging and explanations

…everything finally started to click.
Seeing the event loop in action using visual tools and examples really helped solidify things. Don’t worry if it’s confusing at first — it gets better with practice!


🔥 Motivation

This is just the beginning!
I'll be writing a blog every week to track my learning, keep myself accountable, and help other devs along the way. Let’s grow together 💪

📍 Follow my journey here or on Twitter where I post weekly recaps + blog links!


#100DaysOfCode #WebDev #Cohort2 #JavaScript #LearnInPublic

0
Subscribe to my newsletter

Read articles from Nitin kumar directly inside your inbox. Subscribe to the newsletter, and don't miss out.

Written by

Nitin kumar
Nitin kumar

👨‍💻 Full-Stack & DevOps Learner | Currently part of 100xDevs Cohort 2.0 📚 Documenting my journey in Web Dev, DSA, Docker, Kubernetes, TypeScript 🧠 Learning in Public — Weekly Blogs + Twitter Progress ⚒️ Building projects like PayTM, Zapier Clone, Exchange App 🌱 Gearing up for Open Source, GSoC & Internships