I didn't really catch the problem you are having. NaN is Not a Number error. Maybe you are trying to write string as number. Please share your code and its output so we can better understand the problem.
Also you can convert var to string with String(variable) method.
Hello Rik,
I didn't really catch the problem you are having. NaN is Not a Number error. Maybe you are trying to write string as number. Please share your code and its output so we can better understand the problem.
Also you can convert var to string with
String(variable)
method.A better example could be accessed from this link: w3schools.com/jsref/tryit.asp?file...