---
title: "What is the difference between synchronous and asynchronous functions?"  
description: "What is the difference between synchronous and asynchronous functions?"  
author: "Shrikant Mishra"  
published: 2021-01-19  
canonical: https://www.mindstick.com/interview/33770/what-is-the-difference-between-synchronous-and-asynchronous-functions  
category: "node.js"  
tags: ["javascript", "node js", "scripting", "scripting language"]  
reading_time: 2 minutes  

---

# What is the difference between synchronous and asynchronous functions?

Where the [**synchronous functions**](https://www.mindstick.com/articles/1457/asynchronous-programming-in-node-js) are mainly used for I/O operations. These are instantaneous in providing a response to the data movement in the server and keep up with the data as per the requirement. Although, there are getting no responses, then the [**API**](https://www.mindstick.com/interview/33765/do-you-know-anything-about-asynchronous-api) will throw an bug(error).

Another word, the **[asynchronous](https://www.mindstick.com/interview/22970/what-is-the-difference-between-synchronous-and-asynchronous)** functions, as the name suggests, work on the basis of not being synchronous. There, the HTTP requests when pushed will not wait for a response to begin. The responses to any previous requests will be continuous even if the server has already got the response.

## Answers

### Answer by Shrikant Mishra

Where the [**synchronous functions**](https://www.mindstick.com/articles/1457/asynchronous-programming-in-node-js) are mainly used for I/O operations. These are instantaneous in providing a response to the data movement in the server and keep up with the data as per the requirement. Although, there are getting no responses, then the [**API**](https://www.mindstick.com/interview/33765/do-you-know-anything-about-asynchronous-api) will throw an bug(error).

Another word, the **[asynchronous](https://www.mindstick.com/interview/22970/what-is-the-difference-between-synchronous-and-asynchronous)** functions, as the name suggests, work on the basis of not being synchronous. There, the HTTP requests when pushed will not wait for a response to begin. The responses to any previous requests will be continuous even if the server has already got the response.


---

Original Source: https://www.mindstick.com/interview/33770/what-is-the-difference-between-synchronous-and-asynchronous-functions

Copyright © MindStick Software Pvt. Ltd. This Markdown version is provided for developers, AI systems, and offline reading.
