Commit cfcc3204 authored by Littichai Buddaken's avatar Littichai Buddaken

uploade homework week2

parent 96beba75
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();
})
{
"name": "student",
"version": "0.1.0",
"description": "four",
"main": "index.js",
"scripts": {
"test": "echo \"Error: no test specified\" && exit 1"
},
"repository": {
"type": "git",
"url": "http://projectcs.sci.ubu.ac.th/Inwfour/nodejs-60-2"
},
"keywords": [
"student",
"nodejs",
"comsci",
"ubu"
],
"author": "",
"license": "ISC"
}
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