Commit 8e93a676 authored by jutatip's avatar jutatip

ขอ1คะแนน

parent 5341631b
nodejs-60-2 @ 5341631b
Subproject commit 5341631bd5505243d2a992b619d6ed37bac8ec7e
const readline = require('readline');
const rl = readline.createInterface({
input: process.stdin,
output: process.stdout,
prompt: 'สวัสดีคุณ: '
});
rl.prompt();
rl.on('line', (line) => {
switch (line.trim()) {
default:
console.log(`สวัสดีคุณ' : ${line.trim()}'`);
break;
}
rl.prompt();
});
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