---
title: "Comment by Danny Engelman on \"Testing Array Elements in JavaScript\" | Hashnode"
description: "Loose the return statement and make it a oneliner"
url: "https://hashnode.com/posts/testing-array-elements-in-javascript/64ed2a13d91e47899721d1d1/comment/64f2ff38352b1c82180c6705"
---

[Discussion](https://hashnode.com/posts/testing-array-elements-in-javascript/64ed2a13d91e47899721d1d1)

Comment [Testing Array Elements in JavaScript](https://hashnode.com/posts/testing-array-elements-in-javascript/64ed2a13d91e47899721d1d1)

[Danny Engelman](https://hashnode.com/@Danny-Engelman)

[Sep 2, 2023](https://hashnode.com/posts/testing-array-elements-in-javascript/64ed2a13d91e47899721d1d1/comment/64f2ff38352b1c82180c6705)

Loose the return statement and make it a oneliner

[Alexander Karan](https://hashnode.com/@AlexanderKaran)

[Sep 2, 2023](https://hashnode.com/posts/testing-array-elements-in-javascript/64ed2a13d91e47899721d1d1/comment/64f2ff38352b1c82180c6705#reply-64f3075b352b1c82180c682d)

100%. I used the return statement here to make it more clear for people who are new to JavaScript.
