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