Answers for "debugger node js"

3

settimeout node js

setTimeout(function () {
    console.log("5 secondes"); 
}, 5000); 
console.log("now");
Posted by: Guest on April-03-2020
5

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);
});
Posted by: Guest on May-16-2020

Code answers related to "Javascript"

Browse Popular Code Answers by Language