Skip to content
loading...

re: Let's Count Some Sheep! VIEW POST

FULL DISCUSSION
 

Here I have tried a different approach to this problem.
Taking sheep1 array as reference.

sheep1.sort();
let noOfTrueValues = sheep1.length - sheep1.indexOf(true);

 

So many different solutions, I love it!

code of conduct - report abuse