Convert a Number to a String!

We need a function that can transform a number (integer) into a string.

What ways of achieving this do you know?

123  --> "123"
999 --> "999"
-100 --> "-100"

Solutions

Solution: 1

function numberToString(num) {
  return num.toString();
}