Skip to content

Commit

Permalink
No decimal bug
Browse files Browse the repository at this point in the history
  • Loading branch information
cadengrey authored Dec 17, 2020
1 parent 9092802 commit 6d6cde8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion index.html
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ <h2 id="givenTime"></h2>
x = 0
function generate() {
var givenTime = document.getElementById("givenTime");
givenTime.innerHTML = Math.floor((Math.random() * 9) + 1) + Math.floor((Math.random() * 9) + 1) + Math.floor((Math.random() * 9) + 1);
givenTime.innerHTML = Math.floor((Math.random() * 9) + 1) + "" + Math.floor((Math.random() * 9) + 1) + Math.floor((Math.random() * 9) + 1);
}
let input = document.querySelector('input');
input.addEventListener('keyup', (e) => {
Expand Down

0 comments on commit 6d6cde8

Please sign in to comment.