Sitemap
ITNEXT

ITNEXT is a platform for IT developers & software engineers to share knowledge, connect, collaborate, learn and experience next-gen technologies.

Member-only story

JavaScript tricks

Small but helpful JavaScript snippets that can improve your coding

--

I’m always thinking how can I do something but then I ask myself how can I do it better… Is not only just to challenge me but to create more efficient apps. All the time that you can save is translated to productivity and that make us better people. Now I wanna share with you some JavaScript snippets.

Today number

Returning the number of the day in the year

The day that I was writing this article was 12th of January, so it does return 12.

Fifty Fifty

Returning randomly true or false with the same 50% of probability

Dynamic call

--

--

Adrian Legaspi
Adrian Legaspi

Written by Adrian Legaspi

Twitter: @ImLuyou | Patreon: @luyou | Web developer

ITNEXT
ITNEXT

Published in ITNEXT

ITNEXT is a platform for IT developers & software engineers to share knowledge, connect, collaborate, learn and experience next-gen technologies.