Javascript examples for Statement:Quiz
Use if statement to check if 10 is greater than 5.
<!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>