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.
Hi, I have some problems with the answer because the function returns me a rounded value in all cases (specific, one) but I tried the equation that I use to solve the problem in a scientific calculator and return me a correct answer. Then my answer consists of the next: how I can change this situation in javascript? thank you.
I already achieved to fix the problem. thank you for support,that was really helpfull.
With console.log as you do in your IDE too, Check this: https://docs.codewars.com/training/troubleshooting#error-messages-and-printing-your-inputoutput
Ok, but might you explain to me how to print here? because for the different tests, I use an IDE and use console.log to see the result of my function. Thank you for the answer
Start with printing the input, the first value there is what your function returned.
I getting a problem when press "attempt", but not when I press "test". The problem that the console print is the next:
expected '["a","b",null,"c","d",1,false,1,3,1,9,{},9,0,0,0,0,0,0,0,0,0,0,0]'
to equal '["a","b",null,"c","d",1,false,1,3,[],1,9,{},9,0,0,0,0,0,0,0,0,0,0]'
And I don't understand two things:
First, why it appears [] in the equal if in the first array there isn't? and second, What happens with one zero, why it disappears? Exactly, there are eleven zero's in the initial array, but in the result of the function, there are ten zero's. how the missing zero may be changing like an empty array? please help me with that because I don´t understand what happened here