Determining the sign of a number is super easy now with ES6’s Math.sign 👏 It will indicate whether the number is positive, negative or…
A common gotcha is thinking that Math.sign return the converted argument value. Math.sign returns only the sign of a number. It doesn’t return the value.
#programming #web-development #code #javascript