Untitled


SUBMITTED BY: Guest

DATE: Aug. 16, 2016, 12:26 a.m.

FORMAT: Text only

SIZE: 559 Bytes

HITS: 1012

  1. /*
  2. "guessing.js" is a simple guess the number game created to illustrate
  3. the basics of gaming.
  4. Usage: this file is invoked from guessing.html
  5. Author: David Johnston
  6. Date: 2016
  7. Version: 1
  8. */
  9. // game constants --------------------------------------------------
  10. const TITLE = "Guessing Game";
  11. const MAXNUM = 30;
  12. const CLUELOWER = "It's lower than that.";
  13. const CLUEHIGER = "It's higher than that";
  14. const REPSUCCESS = "Yes! You got it!";
  15. const
  16. var headingArea = document.getElementById("headingArea");
  17. headingArea.innerHTML = TITLE;

comments powered by Disqus