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 one, but its better to check for null values before pushing them to the array
i did
thanks i get it now
theres any one slove this using js ???
No, you just have to make sure that the User class works appropriately. The test will create User instances and assert that your internal logic is right.
i write the the class User with incProgress method and i did all the logic. i just wonderning if i should return the whole object or what ?
Yeah, you can say that once it's accepted, not before.
What do you mean? You need to write a class with specified methods, and return types are different for each. Unfortunately for JS there don't seem to be any sample tests. You can try switching to some other language (if you understand it) to see what the tests look like, or just hit 'Attempt'.
This comment is hidden because it contains spoiler information about the solution
same here
i get it thankyou and i did it !!
If your tests are all green, but you are getting timeout, then it usually means that your solution returns correct answers, there are no failed assertions, but test suite did not manage to run to its end before time run out. Your code is not failing, but it's too slow.
Can you also please delete duplicated message below?
Hey everyone! my code has passed all tests. but i get an error saying that: "Why did my code time out?
Our servers are configured to only allow a certain amount of time for your code to execute. In rare cases the server may be taking on too much work and simply wasn't able to run your code efficiently enough. Most of the time though this issue is caused by inefficient algorithms. If you see this error multiple times you should try to optimize your code further."
thankyou broo !
if you know append(), you'll be okay. i think its about logic and ordering
what i should learn to slove this kata !?
Loading more items...