Number vs parseInt vs String + vs Double Invert

Edit on GitHub

Setup

Tests

  • Number

    Number(123)
  • parseInt

    parseInt("123")
  • String +

    "123"+0
  • Double Invert

    ~~"123"