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
I'm not proficient enough in JS to do that, but if anyone wants to they can.
Thanks. It didn't give me problems personally since I didn't use datetime, but I changed all instances of date to d - it should work now.
I have no idea... could you maybe post your code (be sure to mark it as a spoiler)?
I'm pretty sure that's a problem one Codewars' part. Try submitting again later!
Hang on, my bad - trailing zero's shouldn't be removed, leading zeros should be! (although the test in question doesn't have trailing zeros at all)
It is a valid address, all segments have a valid length. The only way a segment can have an invalid length is if it has more than 4 characters - if it has less, it simply has trailing zeros removed.
EDIT: I see what you mean now - there are 3 segments after the FFFF segment. This means that the address is indeed not a valid IPv4-mapped address; it is, however, a valid regular IPv6 address.
You are correct (I assume you mean the examples in the decsription). Fixed now. Glad you like it!
Email notifications :P
Thanks, I fixed the spelling mistakes. Glad you enjoyed it!
Thanks. It's fixed now.
It's been ages since I did this kata so I don't really remember what it's about, but in the test cases the author does indeed use
str
as a variable name.Of course you still need to do that normally, but in this kata the author has already defined the init() method in the Animal class in the preloaded section. So the cat class also has that method.
The cat class is extended from the parent class 'Animal'. This means that when you create a new cat, it will also have the attributes defined in the animal class - in this case, its name.
Great and fun kata. Also my first one over 4 kyu. Only took me about 4 hours in total.
Loading more items...