Fearless • 2m
Day 11/21 – JavaScript API Calls 🌐 Today I explored how to fetch data from APIs in JavaScript using async/await. Copy code Javascript async function getUsers() { try { let response = await fetch("https://jsonplaceholder.typicode.com/users"); let data = await response.json(); console.log(data); } catch (error) { console.error("Error:", error); } } getUsers(); 🔹 Key points: fetch() → call APIs await → wait for response try/catch → handle errors gracefully APIs make our apps dynamic & real-time ✨ #21DayJavaScript #JavaScript #WebDevelopment #CodingJourney #LearnInPublic
Love to Code | React... • 8m
Ever had a friend join your trip after you’ve booked seats? 🎟️ You’d call support 📞 or tweak the booking. Without a system, it’d be chaos—miscommunication galore! In tech, APIs (Application Programming Interfaces) save us 🦸. They’re the internet’
See More
Full-time Freelancer... • 1y
Most Javascript Questions Asked in Interview | PART 2 1. What is difference between a for loop and for Each loop Ans: A for loop is traditional loop that uses a counter variable to iterate over an array. ForEach loop is a method that iterate over a
See More
Rooted in Linux. Dri... • 1m
🚀 Async Transformation Completed (Almost!) Recently converted a synchronous Hostinger software package into a fully asynchronous architecture using httpx.AsyncClient. 📈 Performance Outcome: 4.34× faster compared to sequential execution Zero err
See More
Download the medial app to read full posts, comements and news.