robbie wererobbie345.hashnode.dev·20 hours agoMastering Data Fetching: How to Use Fetch API with Trivia DB for Seamless IntegrationThe Fetch API provides a modern way to make HTTP request in java script. Trivia DB is a free API that provides trivia questions and answers. By combining these two, you can create a trivia app that fetches questions from trivia DB and displays them t...Discuss#trivia DB
Pawan Spawanblog.hashnode.dev·Jul 23, 2024How the Event Loop Works in JavaScript ExplainedJavaScript is single-threaded, it executes one command at a time in a specific order. However, it can handle asynchronous operations thanks to the event loop. The event loop is a mechanism that manages the execution of multiple pieces of code, handli...DiscussJavaScript
Muhammad Sufiyaninnosufiyan.hashnode.dev·Jul 22, 2024API Call and DOM Manipulation - Vanilla JavaScriptThis guide will show you how to fetch data from an API and display the results on a web page using HTML, CSS, and JavaScript. We will use the following API to get recipes for pizza: https://forkify-api.herokuapp.com/api/v2/recipes?search=pizza. 1. Se...DiscussSMIT - Batch 11HTML5
Shreyansh Guptashreyanshgupta.hashnode.dev·Jul 13, 2024Understand CORS and how to fix a CORS errorWhat is CORS? CORS stands for Cross-Origin-Resource-Sharing. Let us say your backend is an API-only app and it is deployed on Heroku. Your frontend is deployed on Netlify. So your frontend will be communicating with your backend which is on a differe...DiscussCross-Origin Resource Sharing
Syed Aquib Alihadetan.hashnode.dev·Jun 10, 2024Callback Functions, Promises, Async/Await and Fetching API'sCallback Functions A callback function is a function that is passed as an argument to another function and is executed after some operation has been completed. Callbacks are commonly used for asynchronous operations in JavaScript, such as fetching da...Discusscallback functions
Vedansh Mishravedansh.hashnode.dev·May 25, 2024Unlocking the Mysteries of the Fetch API: Beyond the BasicsBefore starting, I have a question. Let's say you get a 404 error (file not found) while fetching a request. Where will the data get stored: in resolve or reject? Stay connected with the article to find the answer by the end. You must have been using...Discussfetch API
Reagan Mwangideepcore.hashnode.dev·May 16, 2024Fetching Data in JavaScriptFetching data from APIs is a common task in web development, especially in modern web applications where data-driven content is prevalent. The process involves retrieving information from a server, typically in JSON format, and using data to update t...Discuss·10 likesaxios
Matteo CollinaforPlatformatic Blogblog.platformatic.dev·May 2, 2024HTTP Fundamentals: Routing fetch() to an in-memory server instanceIn web development, user interactions trigger backend actions, which rely heavily on efficient HTTP calls. Over time, HTTP has become the most popular interface largely due to its robust security measures and ease of debuggability. In this blog, we’l...Discuss·506 readshttp
Debajyati Deydebajyatidey.hashnode.dev·Apr 28, 2024Demystifying Same Origin Policy in Simple WordsAccording to MDN Web Docs, - The same-origin policy is a critical security mechanism that restricts how a document or script loaded by one origin can interact with a resource from another origin. If you are a web developer or someone learning node....Sam Maji and 1 other are discussing this2 people are discussing thisDiscuss·30 likes·114 readsWeb DevJavaScriptGreat article. Clear, consise and easy to understand. 6
Luca PagliaroforSentiero.Digitalblog.sentiero.digital·Apr 24, 2024Mocking API Calls in Tests with Nuxt 3Testing plays a crucial role in the development of robust and reliable applications. When building web applications, particularly those that rely on external APIs, testing API calls becomes essential to ensure the functionality of the application und...Discuss·4 likes·48 readsVue.js