Update README.md

Typing game readme example code doesn't work.
pull/70/head
antanta28 4 years ago committed by GitHub
parent 89a1b452ba
commit b8bb27fbf9
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -173,10 +173,10 @@ const quotes = [
'Education never ends, Watson. It is a series of lessons, with the greatest for the last.',
];
// store the list of words and the index of the word the player is currently typing
const words = [];
let words = [];
let wordIndex = 0;
// the starting time
let startTime = DateTime.getTime();
let startTime = Date.now();
// page elements
const quoteElement = document.getElementById('quote');
const messageElement = document.getElementById('message');

Loading…
Cancel
Save