Content
Playground write me a javascript function that counts all negative numbers in an array function countNegatives(arr) let count 0; for (let i O; i arr.length; i) if (arri 0) count; return count;
Playground write me a javascript function that counts all negative numbers in an array function countNegatives(arr) let count 0; for (let i O; i arr.length; i) if (arri 0) count; return count;