Toggle navigation
Home
Latest pastes
FAQ
Random
Register
Login
Untitled
SUBMITTED BY:
Guest
DATE:
Aug. 16, 2016, 12:26 a.m.
FORMAT:
Text only
SIZE:
559 Bytes
Raw
Download
Tweet
HITS:
1012
Go to comments
Report
/*
"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;
Please enable JavaScript to view the
comments powered by Disqus.
comments powered by
Disqus