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
This basically means "Give me an array of letters from sorted input array's first item" ;)
hey could you please explain me why did you transform the time of the day in millisceconds? Thanks!
You need to wrap those values with brackets
[]
, because what you posted isn't an array. Using "3 dots" on a string returns an array of characters.See https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Operators/Spread_syntax
i don't understand why the three dots (...), return us an array and not something like this :
"paolo","zarate","azorsa","daniel".
i replaced the ...s with those values: "paolo","zarate","azorsa","daniel", to see what is going on, but i gives me an error.
limited testing. it's essentially correct, even if somewhat incomplete.
HOW DID THIS PASS ???
very clever
@rowcased
From my knowlage leaving magic numbers is a bad habit/practise. My descriptive name of const isnt the best, maybe I should name it better, but still this is not a "magic" number. Maybe I'am wrong, correct me if I'am.
honest question: does it make it any less magic if you assign it as a const var as you did in your solution?
86400000 - magic number ;/
That's the amount of miliseconds in a day.
What is the significance of 86400000?
This comment is hidden because it contains spoiler information about the solution
Can anyone tell me how this would compare to just using the method in terms of efficiency?
Wouldn't this require more space to make a copy of the method or is there more to it?
Loading more items...