I have my code below..I need to modify it so that the input is checked if it is number.If its not a number, then a message has to be displayed as follows \" please enter only no
have you tried "typeof"?
if ( typeof entered_num === "number" ) {..} else { //not a number }
https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Operators/typeof