so I'm wanting to do something like this:
I've got a variable that will return anything upto a 7 didget number, and i need to test the value of each digit individually. I can only think to do it as a string, but please feel free to offer help as a string or an integer.
total = "1658793";
parseFloat(total.substring(6)) == 3;
returns "true"
but I need to be able to get the next value, and the next, and then next, individually.
and obviously
parseFloat(total.substring(5)) == 9;
returns "false"
as "parseFloat(total.substring(5)) = 93" but i need to be able to regex check or something to find the 9 on its own. i need the 9, not the 93 does that make sense??
thanks Matt.