0

Basically I have a variable named

var maxvalueNonInt = "£50";

which I want to convert into just the integer, 50.

var maxvalue = parseInt(maxvalueNonInt);

But this returns NaN. What am I not getting here?

Matt Fuller
  • 125
  • 8
  • The `£` symbol is not a numeric value. You need to remove it before parsing to an integer. See the duplicate for more information – Rory McCrossan Jul 25 '21 at 15:02

0 Answers0