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.
Not an issue.
This comment is hidden because it contains spoiler information about the solution
Thanks buddy :)
Don't worry, I am not bothered! No harm made:-) Thanks for your answer and good luck!
Your English is good enough, I well understand it!
What I don't understand is how did you get my solution?
How did you got your solution? Cheating?:-)
you are entering in a new line after the last condition terminates.
Except for the hoisted, global b variable that got introduced :p
How could I know? Did you try several times? Certainly something wrong in your program. The last test is a bit different from the other ones. Look at your shift (rotate).
Which language?
Because Math.floor(num) rounds num down to the nearest whole integer regardless of the decimal value.
Math.ceiling(num) does the opposite; it rounds num up if it's not a whole integer.
Math.round(num) decides whether to use floor or ceiling. Think of it as an if/else statement that rounds it up if the decimal is ≥ 0.5 and rounds it down else.
I don't understand your question. As you already described, the data part of the ean code has the checksum "0" which is unequal to the given checksum "1".
Thus, your validation function has to return "false" because the given ean code is invalid. From my point of view, this test case works fine.
"undefined" may just be a server-side issue.
Save your work, reload the page and try to submit again your code.