Example of if statement in Javascript | M1-R5
Example of if statement in Javascript
<!DOCTYPE html>
<html>
<head>
<script language="javascript">
var x;
x=prompt("input value of x:");
if(x>0)
{
alert("Entered value is greater than zero");
}
if(x<0)
{
alert("Entered value is smaller than zero");
}
</script>
</head>
</html>
That's good again 👏👏👏
ReplyDeleteThanks dude
ReplyDelete