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.
good job
hey could you please explain me why did you transform the time of the day in millisceconds? Thanks!
No, why would you think that? Once you get used to this type of if statement its way more readable than an if statement that takes of many lines for no reason.
It's more compact yes, but wouldn't a simple if-else statement be more readable?
@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?
I've tried using the return keyword after the conditionals in ternary statements before but it's never worked. It's nice to know that I can use return at the beginning of statements. Cheers!
First time that what I did matches the top solution. Yupiiii
This comment is hidden because it contains spoiler information about the solution
What does "?" mean?
%1 soooooo smart :)
(0)_(0) and all that I went and did