Learning Promises in JavaScript for #100DaysOfCode

Day 10/100 of my #100DaysOfCode journey. Today I started learning one of the most important concepts in modern JavaScript — Promises. Key concepts I explored: • synchronous vs asynchronous code • how Promises work (pending → fulfilled → rejected) • handling async operations using .then() and .catch() To practice, I created a small example that simulates an API call using a Promise and setTimeout. One interesting realization: Automation frameworks interact with browsers and APIs constantly — both of which are asynchronous operations. Understanding Promises is essential before moving to async/await, which is heavily used in tools like Playwright. Next → rewriting these examples using async/await. #100DaysOfCode #SoftwareTesting #JavaScript #QAAutomation #LearningInPublic

  • text

One thing that really clicked for me today: Promises make it much easier to deal with things that take time — like API calls or browser actions. Without them, the code would get messy pretty quickly and debugging would become a headache.

Like
Reply

To view or add a comment, sign in

Explore content categories