Language Basics JavaScript DHTML




function incrementNum(myNum) {
    if (isNaN(myNum)) {
        alert(myNum + " isn't a number.");
        return;
    }
    return myNum + 1;
}




alert(incrementNum(3));