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?
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?