Answers for "check if value is number"

0

check if value is number

if(isNaN(num1))
OR:
if(typeof num1 == 'number'){
    document.write(num1 + " is a number <br/>");
 }else{
    document.write(num1 + " is not a number <br/>");
 }
Posted by: Guest on September-12-2021

Code answers related to "check if value is number"

Code answers related to "Javascript"

Browse Popular Code Answers by Language