Commit 8343402d authored by Phattaraphon Pewruang's avatar Phattaraphon Pewruang

inputdata

parent 5fd6f9ed
Pipeline #961 failed with stages
const readline = require('readline'); const readline = require('readline');
const rl = readline.createInterface({input:process.stdin, output:process.stdout}); const rl = readline.createInterface({input:process.stdin, output:process.stdout});
rl.question('กรอกชื่อ ',(answer)=>{console.log('Hello world'); rl.question('กรอกปีที่เกิด', (year)=>{console.log(`Hello, ${2563 - year}`);
}) rl.close();})
rl.close();
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment