- var numberString "12345";
- var numberInt;
- numberInt = int.Parse(numberString);
- // numberInt now is 12346
Thats what should happen. I converted the C# code from here to that JS. Problem is, it seems like it doesn't know that numberString is the right type of string or something, because it outputs the error "System.FormatException: Invalid format" on the int.Parse() line.