tags:

views:

150

answers:

1
 <html>
    <head></head>
    <body>
     <script type = "text/javascript">
      var x = 5;
      var y = 8;
      if (x < 6)
      {
       document.write("They are equal");
      }
      else
      {
       document.write{"They are NOT equal");
      }
     </script>
    </body>
</html>
+12  A: 

I think you have a syntax error:

document.write{"They are NOT equal");

Should be

document.write("They are NOT equal");
ChaosPandion
damn it. I can't believe I didnt see this after 15 minutes :( Thanks ChaosPandion!
noobzilla
@idunno - I've done much worse. :)
ChaosPandion
you should see if it's possible to code in a font that will reduce this problem.
CrazyJugglerDrummer