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 cdcfeb7 commit 3b97de7Copy full SHA for 3b97de7
1 file changed
doc/api/repl.md
@@ -312,12 +312,12 @@ replServer.defineCommand('sayhello', {
312
action: function(name) {
313
this.lineParser.reset();
314
this.bufferedCommand = '';
315
- this.write(`Hello, ${name}!\n`);
+ console.log(`Hello, ${name}!`);
316
this.displayPrompt();
317
}
318
});
319
replServer.defineCommand('saybye', function() {
320
- this.write('Goodbye!\n');
+ console.log('Goodbye!');
321
this.close();
322
323
```
0 commit comments