<head> <title></title> <script type = "text/javascript" > function incrementNum(myNum) { if (isNaN(myNum)) { alert(myNum + " isn't a number."); return; } return myNum + 1; } </script> </head> <body> <script type = "text/javascript" > alert(incrementNum(3)); </script> </body>