I have been unable to submit my code. It shows that there is an internal server issue.
This is my code:
function countSheeps(sheep) {
// TODO
let count = 0;
for(let i=0; i<sheep.length; ++i) {
if(sheep[i]===true) {
count++;
}
}
return count;
}
The code is supposed to take an array and check if it is true/false and return the number of times true is given as input. My testcases ran perfectly. I passed the "attempt" process but this is being shown if I try to submit my code:
I have been unable to submit my code. It shows that there is an internal server issue.
This is my code:
function countSheeps(sheep) { // TODO let count = 0; for(let i=0; i<sheep.length; ++i) { if(sheep[i]===true) { count++; } } return count; }
The code is supposed to take an array and check if it is true/false and return the number of times true is given as input. My testcases ran perfectly. I passed the "attempt" process but this is being shown if I try to submit my code:
I am using google chrome to open the websites.