# Javascript return statements

**URL:** <https://forum.freecodecamp.org/t/javascript-return-statements/482279>\
**Category:** Curriculum Help\
**Tags:** javascript\
**Created:** [October 19, 2021, 6:09am UTC](https://forum.freecodecamp.org/t/javascript-return-statements/482279 "2021-10-19T06:09:50Z")\
**Posts on this page:** 1\
**Showing post:** 3

<div class="post-metadata">

**Author:** ![ILM](https://sea3.discourse-cdn.com/freecodecamp/user_avatar/forum.freecodecamp.org/ilm/32/363239_2.png) [@ILM](https://forum.freecodecamp.org/u/ILM)\
**Post date:** [October 19, 2021, 6:19am UTC](https://forum.freecodecamp.org/t/javascript-return-statements/482279/3 "2021-10-19T06:19:46Z")

</div>

The map method returns a new array, if it is being used in a function, you need to do something with the returned array.

* * *

I’ve edited your post for readability. When you enter a code block into a forum post, please precede it with a separate line of three backticks and follow it with a separate line of three backticks to make it easier to read.

You can also use the “preformatted text” tool in the editor (`</>`) to add backticks around text.

 ![Pre-formatted-text](https://global.discourse-cdn.com/freecodecamp/original/3X/1/b/1b18854f1059217f29370444396145cc3a0cd8ae.gif)

See [this post](https://forum.freecodecamp.org/t/forum-code-formatting/25574) to find the backtick on your keyboard.  
**Note:** Backticks (`) are not single quotes (’).

---

_[View the full topic](https://forum.freecodecamp.org/t/javascript-return-statements/482279)._
