Number vs parseInt vs String

Edit on GitHub

Setup

Tests

  • Number

    Number("123")
  • parseInt

    parseInt("123")
  • String

    "123" + 0