Skip to content

Commit 92034ab

Browse files
authored
Update HiLo.js
1 parent 0f13049 commit 92034ab

File tree

1 file changed

+0
-18
lines changed

1 file changed

+0
-18
lines changed

Hi-Lo Game/HiLo.js

Lines changed: 0 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -10,13 +10,7 @@ var counter = 0;
1010
var db;
1111
var name;
1212

13-
function firebaseDB() {
14-
// Initialize Firebase
15-
firebase.initializeApp(firebaseConfig);
16-
db = firebase.database();
17-
}
1813
function randomNum() {
19-
firebaseDB();
2014
theNum = Math.floor((Math.random() * 100) + 1);
2115
}
2216

@@ -47,18 +41,6 @@ function guessNum() {
4741
document.getElementById("correctNum").innerHTML = theNum;
4842
document.getElementById("congo").style.display = "block";
4943
document.body.style.backgroundColor = "limegreen";
50-
name = prompt("Please enter your name");
51-
submitScore();
5244
}
5345
document.getElementById("numInput").value = "";
5446
}
55-
56-
function submitScore() {
57-
var data = {
58-
Name: name,
59-
Guesses: counter
60-
}
61-
var ref = db.ref('Hi-Low/guessScore');
62-
ref.push(data);
63-
64-
}

0 commit comments

Comments
 (0)