Thanks for sharing. It's good to know tricks even if it's not good to use them. Example with implicit number coercion on Date is misleading. I'll be disappointed to see it in some produciton code.
new Date(+new Date() + 10 *1000) // vs new Date(Date.now() + 10 * 1000)
Ahh true, that looks much more understandable. Thanks for the feedback!
Are you sure you want to hide this comment? It will become hidden in your post, but will still be visible via the comment's permalink.
Hide child comments as well
Confirm
For further actions, you may consider blocking this person and/or reporting abuse
We're a place where coders share, stay up-to-date and grow their careers.
Thanks for sharing. It's good to know tricks even if it's not good to use them.
Example with implicit number coercion on Date is misleading. I'll be disappointed to see it in some produciton code.
Ahh true, that looks much more understandable. Thanks for the feedback!