ส่งงาน week2 ขอ 1 คะแนน

parent 85d7e9da
/*const MESSAGE = "Hello";
let name = "";
console.info(MESSAGE);*/
let name = "";
const readline = require('readline');
const fs = require('fs');
const rl = readline.createInterface({
/*input: fs.createReadStream('sample.txt'),*/
input: process.stdin,
output: process.stdout
});
rl.question('คุณชื่ออะไร : ', (answer) => {
console.log(`สวัสดีคุณ : ${answer}`);
});
{
"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/Juntrarat/nodejs-60-2"
},
"keywords": [
"student",
"nodejs",
"comscience.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