For "real world use", I think a string without an hash should be tested as well: check('www.codewars.com', 'www.codewars.com')
check('www.codewars.com', 'www.codewars.com')
This comment is hidden because it contains spoiler information about the solution
You are supposed to write yourself all the solutions
It has nothing to do with having to write everything from scratch.
ROTFL!
Crazy initialization by 9007199254740992 ... 😆
I like this solution. Few and performant code! Well done.
I like it. Nevertheless one should notice that substr() is marked as deprecated: https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/String/substr
Loading collection data...
For "real world use", I think a string without an hash should be tested as well:
check('www.codewars.com', 'www.codewars.com')
This comment is hidden because it contains spoiler information about the solution
It has nothing to do with having to write everything from scratch.
ROTFL!
This comment is hidden because it contains spoiler information about the solution
Crazy initialization by 9007199254740992 ... 😆
This comment is hidden because it contains spoiler information about the solution
I like this solution. Few and performant code! Well done.
I like it.
Nevertheless one should notice that substr() is marked as deprecated:
https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/String/substr