how to chake if the string is a number or not code example
Example: check if string can be a number and then make a number
if(Number(myNumber) != NaN){
myNumber = Number(myNumber);
}
if(Number(myNumber) != NaN){
myNumber = Number(myNumber);
}