Commit fb7d4a5a authored by Lalita's avatar Lalita

add year

parent 9e0137f3
Pipeline #968 failed with stages
...@@ -4,6 +4,6 @@ const readline = require('readline'); ...@@ -4,6 +4,6 @@ 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('กรอกปีเกิด ', (year) => { rl.question('กรอกปีเกิด ', (year) => {
console.log('ตอนนี้อายุ ${2563-year} ปี'); console.log(`ตอนนี้อายุ ${2563-year} ปี`);
rl.close(); rl.close();
}) })
\ 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