From 36b316bd374ff1b2667ed13445e3453a94ddefe4 Mon Sep 17 00:00:00 2001 From: jakkreejack <jakkree.ko.59@ubu.ac.th> Date: Wed, 1 Jul 2020 12:28:48 +0700 Subject: [PATCH] Add readinfo --- readinfo.js | 7 +++++++ 1 file changed, 7 insertions(+) create mode 100644 readinfo.js diff --git a/readinfo.js b/readinfo.js new file mode 100644 index 0000000..b00f270 --- /dev/null +++ b/readinfo.js @@ -0,0 +1,7 @@ +const readline = require('readline'); +const rl = readline.createInterface({input: process.stdin, output: process.stdout}); + +rl.question('เธเธฃเธญเธเธเธตเน€เธเธดเธ”', (year) => { + console.log(`เธ•เธญเธเธเธตเนเธญเธฒเธขเธธ ${2563-year} เธเธต`); + rl.close(); +}) -- 2.18.1