DEV Community

Discussion on: Basic Algorithm Scripting in JavaScript

 
pentacular profile image
pentacular

So, if (Math.sign(num)) { . . . } could be replaced with if (true) { ... } in your code without changing any answer?