DEV Community

Cover image for #7DaysJS: Read My Sign

#7DaysJS: Read My Sign

Lautaro Lobo
While you read this I'm learning something new. CS ♥️
Originally published at on ・1 min read

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.


zeros: 2,
positives: 3,
negatives: 2 

Good luck!

You can see the solution here.

Discussion (0)