#7DaysJS: Read My Sign
Lautaro Lobo

Lautaro Lobo @lautarolobo

About: While you read this I'm learning something new.

Location:
Córdoba, Argentina
Joined:
May 6, 2019

#7DaysJS: Read My Sign

Publish Date: Dec 1 '19
6 0

Welcome to day 3 of 7 of Days of JavaScript!

Today’s challenge is to write a function that takes an array and says how many numbers are positives, how many numbers are negatives, and how many are zeros.

Example:

[1,3,0,-1,0,5,-5]
...
{
zeros: 2,
positives: 3,
negatives: 2 
}

Enter fullscreen mode Exit fullscreen mode

Good luck!

You can see the solution here.

Comments 0 total

    Add comment