Fearless • 4m
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
Student & Tech Enthu... • 9d
Switched to backend development! 🚀 Was on frontend before, now fully into Node.js, Express, APIs, and more. Learning routes, file handling, async/await, error handling – practicing everything step by step. Check out my latest code snippet 👇 Super
See More
Love to Code | React... • 10m
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
Download the medial app to read full posts, comements and news.