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.
Nice the '_'
nicely done
Better if the table name was different than the column name
Thanks . really good
Numbers with a leading zero are (in some programming languages) interpreted as octal (base 8). 17 in the octal number system is 15 in the decimal numer system (base 10). squareDitigts(15) gives 125, since 1² = 1, and 5² = 25.
You can use the hexadecimal system by prefixing the number with 0x, and binary with 0b. At least in JavaScript.
017 = 0xf = 0b1111 = 15.
ok , I'm just starting go and using codewars
Please mark you post as having spoiler content next time. That's not how
switch
works.This comment is hidden because it contains spoiler information about the solution
Test passed . however give strange result when number start with 0 ( 017 gives 125) or (012 gives 10)