Convert to String vs Math.log()

Edit on GitHub

Setup

var numbers = [10];

for(var i = 1; i < 15; i++) {
    numbers[i] = numbers[i - 1] * 10;
}

console.log(111, numbers);

Tests

  • Convert to String

    console.log(222, numbers);
  • Math.log()

    console.log(333, numbers);