Skip to content

Commit 07bc220

Browse files
committed
Fix comments
1 parent 9522304 commit 07bc220

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

main.js

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,6 @@ let speed = 5;//game speed
55
let characterToType = '';//character to type
66
const charactersList = 'abcdefghijklmnopqrstuvwxyz';//list of characters to type
77
let time = null;//last time key was pressed
8-
98
console.log("Type the correct character to score a point");
109

1110
function getRandomCharacter() {//function to generate random character
@@ -22,7 +21,7 @@ function setupInputListener() {
2221
stdin.setRawMode(true);//use raw mode
2322
stdin.resume();
2423
stdin.setEncoding('utf8');
25-
stdin.on('data', handleInput);//use data
24+
stdin.on('data', handleInput);//handle input data
2625
}
2726

2827
function handleInput(key) {//when key is pressed

0 commit comments

Comments
 (0)