Commit 36b316bd authored by jakkree kongpha's avatar jakkree kongpha

Add readinfo

parent d4379919
const readline = require('readline');
const rl = readline.createInterface({input: process.stdin, output: process.stdout});
rl.question('กรอกปีเกิด', (year) => {
console.log(`ตอนนี้อายุ ${2563-year} ปี`);
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