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
  • 53,323
  • 11
  • 64
  • 89
Zerho
  • 1,440
  • 4
  • 19
  • 38

0 Answers0