promp node js
const readline = require("readline");
const rl = readline.createInterface({
input: process.stdin,
output: process.stdout
});
rl.question("What is your name ? ", function saveInput(name) {
console.log(`His name is ${name}`);
rl.close();
});
rl.on("close", function saveInput() {
console.log("\nBYE BYE !!!");
process.exit(0);
});
Also in JavaScript:
- javascript check string lenght
- how create array with names of files in folder nodejs
- console.log
- update head tag metadata vue
- javascript round to 2 digits
- jquery async await $.getScript(
- lodash npm
- react router dom
- jquery add attribute without value
- javascript alphabetical sort in order
- javascript ajax show result type min 3 characters
- set port in react app
- typescript express next middleware type
- how to make a 4 dimensional array in JavaScript
- chart.js cdn
- postfix date javascript
- javascript get current date and time
- redux http library
- comment obtenir l'élément parent javascript
- how to change a variables value in javascript
- vertical line for pong javascript
- java script converting text to slug
- how to remove 000webhost watermark 2019
- merge two strings with alternate characters javascript