Use if statement to check if 10 is greater than 5. - Javascript Statement

Javascript examples for Statement:Quiz

Description

Use if statement to check if 10 is greater than 5.

Demo Code

ResultView the demo in separate window

<!DOCTYPE html>
<html>
<body>

<p id="demo"></p>

<script>
if (10 > 5) {//from   w  ww.jav  a  2  s.  co m
    document.getElementById("demo").innerHTML = "yes";
}
</script>

</body>
</html>

Related Tutorials