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.
This comment is hidden because it contains spoiler information about the solution
what is wrong with it ? all squares... what did i miss ?
this-> console.log(sqInRect(20, 14)); // [14, 6, 6, 2, 2, 2])
i had broken into [ 16, 4, 2, 2 ] which is too sums up nicely.
i am stuck on this - Value is not what was expected all the time. this isn't worth it. what is the issue?
all my tests are passing. keep failing on submit. getting expected 1 got 0. i covered '' and 'a' - what else?
This comment is hidden because it contains spoiler information about the solution
This comment is hidden because it contains spoiler information about the solution
this should have passed the test... the output is correct:
function solution(pairs){
for(el in pairs)
{
console.log(el + " = " + pairs[el]);
}
}
TESTED ON JSFIDDLE