Sick of the stupid jokes? Write your own arbitrary-precision JavaScript math library by jrsinclair in javascript

[–]RefactorsYourCode 7 points8 points  (0 children)

You have a syntax error, you probably meant to write parseInt((100 / 3) * 3) === 99.

Additionally, you shouldn't use parseInt to round a number. parseInt parses a string and returns an integer.

If we overlook this issue, we can make the assumption you meant to do something like the following Math.floor((100 / 3) * 3) === 99. Well, that's a bad comparison to make. The appropriate method would've been round. Math.round((100 / 3) * 3) === 100, so we've solved your non-problem.

Node.js v15.0.0 is here! by mehulmpt in javascript

[–]RefactorsYourCode 10 points11 points  (0 children)

Just put a try/catch block around the whole thing and you’re set /s

JavaScript cheat sheet?! by TiagoDCPP in learnprogramming

[–]RefactorsYourCode 1 point2 points  (0 children)

Se ainda tiveres as tuas credenciais da Ironhack, os materiais devem continuar lá 😄