From b8bb27fbf919af61c5bd8205c5a00849a46177fb Mon Sep 17 00:00:00 2001 From: antanta28 Date: Thu, 19 Nov 2020 17:16:10 +0300 Subject: [PATCH] Update README.md Typing game readme example code doesn't work. --- 4-typing-game/typing-game/README.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/4-typing-game/typing-game/README.md b/4-typing-game/typing-game/README.md index d8fa01e9..83ed6bc9 100644 --- a/4-typing-game/typing-game/README.md +++ b/4-typing-game/typing-game/README.md @@ -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');