lundi 19 mars 2018

JavaScript if else block NaN value execution

enter image description here

the value of one and two are coming from

var one = parseInt(prompt('Enter First Number: '));
var two = parseInt(prompt('Enter Second Number: '));

if I entered any string then it converts to NaN. I want to get execution of if block if its not NaN

Aucun commentaire:

Enregistrer un commentaire