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.
when you want to solve a problem, better way is using the fundamentals of the language not the built-in function.
Template literals FTW
I don't know why 0 * -1 = -0 in JavaScript which is very different from math. Every number that multiplies with 0 should be result in 0 right?
ofcourse!
Because that doesn't do what the problem requires.
This comment is hidden because it contains spoiler information about the solution
Classes are just syntactic sugar meant to encapsulate code and abstract(hiding unnecessary details) code. The code would still work in this case without classes and by simply just writing the function
Regex is adding unnecessary overhead here
-0 is 0. Do you know what the word "bug" means? It means when actual behavior fails to match expected behavior, which is not the case here.
This comment is hidden because it contains spoiler information about the solution
-0 is 0
This comment is hidden because it contains spoiler information about the solution
This comment is hidden because it contains spoiler information about the solution
This comment is hidden because it contains spoiler information about the solution
bomboclacthat
Loading more items...