Commit 9e0137f3 authored by Lalita's avatar Lalita

add year

parent d53c2e6e
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 });
console.log('Hello world'); //print('hello world'); rl.question('กรอกปีเกิด ', (year) => {
console.log('ตอนนี้อายุ ${2563-year} ปี');
rl.close(); rl.close();
\ No newline at end of file })
\ No newline at end of file
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