Loading collection data...
Collections are a way for you to organize kata so that you can create your own training routines. Every collection you create is public and automatically sharable with other warriors. After you have added a few kata to a collection you and others can train on the kata contained within the collection.
Get started now by creating a new collection.
marked as resolved
You're meant to return the boolean value of true and false, as opposed to the string representation of the boolean values that you're currently returning at the moment.
I tried this code and it gives some strange errors please check why it is not passing
function betterThanAverage(classPoints, yourPoints) {
var TotalArray = 0;
for (var i in classPoints) {TotalArray += classPoints[i]};
var classavg = (TotalArray)/(classPoints.length);
//return classavg;
var classavgwithme = (TotalArray + yourPoints)/(classPoints.length+1);
//return classavgwithme;
if ((classavg < yourPoints) && (classavgwithme < yourPoints))
{return "true"} else { return "false"};
}