Commit 2c5cf4a3 authored by nittaya chompoosan's avatar nittaya chompoosan

week2

parent fd139adb
const MESSAGE = "hello world";
// let name ="nid";
// console.log("i am nittaya");
const readline = require('readline');
const rl = readline.createInterface({
input: process.stdin,
output: process.stdout
});
rl.question('กรอกชื่อของคุณ ? ', (answer) => {
// TODO: Log the answer in a database
console.log(`สวัสดีคุณ: ${answer}`);
rl.close();
});
{
"name": "student",
"version": "0.1.0",
"lockfileVersion": 1
}
{
"name": "student",
"version": "0.1.0",
"description": "display student information given nickname for partially entered fullname.",
"main": "index.js",
"scripts": {
"test": "echo \"Error: no test specified\" && exit 1"
},
"repository": {
"type": "git",
"url": "http://projectcs.sci.ubu.ac.th/nittaya/nodejs-60-2"
},
"keywords": [
"student",
"nodejs",
"comsci",
"ubu"
],
"author": "csubu",
"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