We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 166ba19 commit 0f72d49Copy full SHA for 0f72d49
JavaScript/2-readline.js
@@ -7,7 +7,7 @@ const rl = readline.createInterface({
7
output: process.stdout
8
});
9
10
-rl.question('Enter your name: ', (name) => {
+rl.question('Enter your name: ', name => {
11
console.log(`Hello ${name} !`);
12
rl.close();
13
JavaScript/3-prompt.js
@@ -22,7 +22,7 @@ const commands = {
22
}
23
};
24
25
-rl.on('line', (line) => {
+rl.on('line', line => {
26
line = line.trim();
27
const command = commands[line];
28
if (command) command();
0 commit comments