You are viewing a single comment's thread. Return to all comments →
My version :)
console.log(arr.filter((v) => v > 0 ).length / n); console.log(arr.filter((v) => v < 0 ).length / n); console.log(arr.filter((v) => v === 0 ).length / n);
Seems like cookies are disabled on this browser, please enable them to open this website
Plus Minus
You are viewing a single comment's thread. Return to all comments →
My version :)