Javascript examples for Statement:Quiz
Change the string value using if statement
<!DOCTYPE html> <html> <body> <p id="demo"></p> <script> var firstName = "TOM"; if (firstName === "TOM") { document.getElementById("demo").innerHTML = "Hello TOM!"; } </script>/*ww w . jav a2s .com*/ </body> </html>