Edit The Code:
See Result »
Try it Yourself - ©
w3ii.com
<
!DOCTYPE
html
>
<
html
>
<
body
>
<
p
id
="demo"
>
<
/p
>
<
script
>
var
x =
5
;
if
(x ==
19
);
{
document.getElementById(
"demo"
).innerHTML =
"Hello"
;
}
<
/script
>
<
/body
>
<
/html
>
<!DOCTYPE html> <html> <body> <p id="demo"></p> <script> var x = 5; if (x == 19); { document.getElementById("demo").innerHTML = "Hello"; } </script> </body> </html>