No questions are stupid.
quick response:
to convert a string to a number, you can use a unary plus.
var num = "82144251"; num = +num;
The execution of num = +num
almost the same as the execution of num = num * 1;
, if necessary, it converts the value of to into a number, but after that it does not change the value.
source share