var readline = require('readline')
var r1= readline.createInterface(process.stdin,process.stdout)
r1.question("what is your age",(age)=>{
console.log("Your AGe is " + age)
})
const readline = require('readline')
var r1= readline.createInterface(process.stdin,process.stdout)
r1.setPrompt("what is age?")
r1.prompt()
r1.on('line',(age)=>{
console.log(age)
})
No comments:
Post a Comment