---
title: "Discussion on \"How to write a JavaScript function that returns all positive integers in an array.\" | Hashnode"
description: "Discussion on \"How to write a JavaScript function that returns all positive integers in an array.\". The big question is, what is a FUNCTION in JavaScript?🤔\nThe function contains instructions used to create the output from its input. It's like a cow 🐄 that eats grass 🥦(the input) which its body turns into milk 🥛which a dairy farmer then milks (t..."
url: "https://hashnode.com/posts/how-to-write-a-javascript-function-that-returns-all-positive-integers-in-an-array/634327cba43e6bc441cb8d93"
---

[Feed](https://hashnode.com/feed) /

Discussion

# [How to write a JavaScript function that returns all positive integers in an array.](https://brymmobaggins.hashnode.dev/how-to-write-a-javascript-function-that-returns-all-positive-integers-in-an-array?utm_source=hashnode&utm_medium=feed)

The big question is, what is a FUNCTION in JavaScript?🤔 The function contains instructions used to create the output from its input. It's like a cow 🐄 that eats grass 🥦(the input) which its body turns into milk 🥛which a dairy farmer then milks (t...

Oct 9, 2022 · 2 min read · brymmobaggins.hashnode.dev  
Updated Jun 27, 2024  
Read the article

-   [#javascript](https://hashnode.com/tag/javascript)
-   [#functional-programming](https://hashnode.com/tag/functional-programming)
-   [#functions](https://hashnode.com/tag/functions)
-   [#data-structures](https://hashnode.com/tag/data-structures)
-   [#reactjs](https://hashnode.com/tag/reactjs)

## Written by

[Ibrahim Bakare](https://hashnode.com/@IbrahimBakare)

@IbrahimBakare · Lagos, Nigeria

  
[View profile](https://hashnode.com/@IbrahimBakare)

Software Engineer | front end Engineer

I am Software Engineer living in JavaScript Ecosystem. I love build cool stuffs with Javascript

## Responses

Markdown supported · ⌘↵ to post

No responses yet.
