DEV Community

Discussion on: 5 useful javascript tricks for begginers.

Collapse
 
captainofphb profile image
Info Comment hidden by post author - thread only visible in this permalink
CaptainOfPhB

I think those are basic skills of javascript developer(maybe you are a new bee), and the second trick is not recommended, Math.round/Math.floor/Math.ceil are better choice, which will make your code more readable.

Some comments have been hidden by the post's author - find out more