The below JavaScript code will open an alert window to display a message when the user entered a number, if the user entered number like 65, an alert window will display a message like?
function showMessage () {
var number=parseFloat (document.getElementById(‘numberBox’).value); //number=65
if (number < 50 )
{
alert (‘Jeff’) ;
}
else
{
If ( number < 70 )
{ alert (‘Bob’) ;}
else
{ alert (‘Lewis’); }
}
}//close function