Computer scienceBackendNode.jsCore ConceptsInternal modulesReadline

Readline module

Order the script

Report a typo

Arrange the following lines of code in the correct order. Don't forget to properly indent each line.

Reorder lines using drag or arrows. Adjust indentation with left buttons
                const rl = readline.createInterface(process.stdin,process.stdout);
              
                rl.close();
              
                });
              
                rl.question('What is your name? ', (answer) => {
              
                console.log(`Nice to meet you, ${answer}`);
              
                const readline = require('readline');
              
___

Create a free account to access the full topic