Computer scienceBackendNode.jsCore ConceptsInternal modulesReadline

Readline module

Say hello

Report a typo

Write a program to read input from the user and greet the user with: Hello {name}. Nice to meet you!

Use the 'line' event to listen for input and don't output a message for the input!

Sample Input 1:

John

Sample Output 1:

Hello John. Nice to meet you!
Write a program in JavaScript
const readline = require('readline');

// Write your code here
___

Create a free account to access the full topic