Example of else if statement in JavaScript .... O level second paper programming
Example of "else if" Statement in JavaScript... Special for O level paper second
<!DOCTYPE html>
<html>
<head>
<script language="javascript">
var x;
x=prompt("Enter Any number:");
if(x==0)
{
alert("Good");
}
else if(x>=20)
{
alert("best");
}
else
{
alert("better")
}
</script>
</head>
</html>
No comments:
Post a Comment