toString vs + ''

Edit on GitHub

Compare toString() vs concatenating an empty string

Setup

const num = 13;

Tests

  • toString

    num.toString();
  • + ''

    num + '';