Syntax isNaN(variable) The isNaN() function is used to determine whether variable is a valid number. Enter a number or character into the text box and then click the check value button to verify if the input is a number.