---
title: "How to return value from an arrow function in JavaScript?"  
description: "How to return value from an arrow function in JavaScript?"  
author: "Sandra Emily"  
published: 2023-10-08  
updated: 2023-10-09  
canonical: https://www.mindstick.com/forum/160056/how-to-return-value-from-an-arrow-function-in-javascript  
category: "javascript"  
tags: ["javascript", "arrow function"]  
reading_time: 1 minute  

---

# How to return value from an arrow function in JavaScript?

How to [return value](https://www.mindstick.com/forum/33675/how-to-convert-return-value-of-abmulivaluecopylabelatindex-into-nsstring-in-ios) from an [arrow function](https://www.mindstick.com/forum/160054/how-to-pass-parameter-values-in-javascript-arrow-function) in [JavaScript](https://www.mindstick.com/articles/874/how-to-create-watermark-text-for-textbox-by-using-javascript)?

## Replies

### Reply by Aryan Kumar

In JavaScript, you can return a [value](https://www.mindstick.com/articles/23219/an-optimized-description-adds-value-to-experience-and-in-turn-effectively-guest-posting-packages) from an [arrow](https://answers.mindstick.com/qa/95602/which-country-test-flighted-arrow-3-anti-ballistic-missile-system-and-its-interceptors) [function](https://www.mindstick.com/articles/13001/multi-statement-table-valued-user-defined-function-in-sql-server) just like you would with a regular function. Arrow functions allow you to create concise one-liners for returning a value. Here's how you can return a value from an arrow function:

```plaintext
const functionName = (parameter1, parameter2, ...) => {
  // Function body
  return returnValue; // Return statement
};
```

Arrow functions are especially useful for short, single-expression functions, as they allow you to omit the curly braces **{}** and write the expression directly after the **=>**, making the code more concise. For such functions, you can return a value without using the **return** keyword explicitly, like this:

```plaintext
const addNumbers = (num1, num2) => num1 + num2;
```

This is known as an implicit return, and it works when the function body consists of a single expression.


---

Original Source: https://www.mindstick.com/forum/160056/how-to-return-value-from-an-arrow-function-in-javascript

Copyright © MindStick Software Pvt. Ltd. This Markdown version is provided for developers, AI systems, and offline reading.
