denniswong34


SUBMITTED BY: denniswong34

DATE: Oct. 28, 2016, 5:36 a.m.

FORMAT: JavaScript

SIZE: 345 Bytes

HITS: 936

  1. <!DOCTYPE html>
  2. <html>
  3. <body>
  4. <h1>JavaScript Statements</h1>
  5. <p>Statements are separated by semicolons.</p>
  6. <p>The variables x, y, and z are assigned the values 5, 6, and 11:</p>
  7. <p id="demo"></p>
  8. <script>
  9. var x = 5;
  10. var y = 6;
  11. var z = x + y;
  12. document.getElementById("demo").innerHTML = z;
  13. </script>
  14. </body>
  15. </html>

comments powered by Disqus