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.
Use single quotes unless string interpolation is required.
hey could you please explain me why did you transform the time of the day in millisceconds? Thanks!
@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?
Thanks very much guys. I'll use it with caution, but it's good to know.
@Steffan: when you mark your post as spoiler, the person to who you answer doesn't get any notification. That's why you see sometimes this kind of message.
If anyone could explain what happened here, I'd be really grateful.
This comment is hidden because it contains spoiler information about the solution
yep but it is not very efficient
I didn't know that you could do that with sum
Welcome to CodeWars!
Just go to http://www.codewars.com/kata/grasshopper-array-mean/javascript (or by "← back to kata solutions" link) and press [Train] button.
Loading more items...