• Custom User Avatar

    nice one, but its better to check for null values before pushing them to the array

  • Custom User Avatar

    i did

  • Custom User Avatar

    thanks i get it now

  • Custom User Avatar

    theres any one slove this using js ???

  • Custom User Avatar

    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.

  • Custom User Avatar

    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 ?

  • Custom User Avatar

    my code is correct

    Yeah, you can say that once it's accepted, not before.

    what the return should looks like ?

    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'.

  • Custom User Avatar

    This comment is hidden because it contains spoiler information about the solution

  • Custom User Avatar

    same here

  • Custom User Avatar

    i get it thankyou and i did it !!

  • Custom User Avatar

    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?

  • Custom User Avatar

    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."

  • Custom User Avatar

    thankyou broo !

  • Custom User Avatar

    if you know append(), you'll be okay. i think its about logic and ordering

  • Custom User Avatar

    what i should learn to slove this kata !?

  • Loading more items...