Data update
This commit is contained in:
parent
72eb4943cb
commit
4d5544505c
2347 changed files with 62432 additions and 16731 deletions
16
Task/User-input-Text/JavaScript/user-input-text-3.js
Normal file
16
Task/User-input-Text/JavaScript/user-input-text-3.js
Normal file
|
|
@ -0,0 +1,16 @@
|
|||
const readline = require("readline");
|
||||
|
||||
const rl = readline.createInterface({
|
||||
input: process.stdin,
|
||||
output: process.stdout
|
||||
});
|
||||
|
||||
rl.question("Enter a string: ", (str) => {
|
||||
console.log(str);
|
||||
rl.close();
|
||||
});
|
||||
|
||||
rl.question("Enter a number: ", (n) => {
|
||||
console.log(parseInt(n));
|
||||
rl.close();
|
||||
});
|
||||
Loading…
Add table
Add a link
Reference in a new issue