1

jshint suggests not to use the constructor new Number( )

but what really are the differences, pros and cons of using one or another

var x = new Number("23");

or

var y = parseInt("42");
Andy
  • 61,948
  • 13
  • 68
  • 95
Zerho
  • 1,440
  • 4
  • 19
  • 39

0 Answers0