Commit 8766374a authored by jatuporn Tonggasem's avatar jatuporn Tonggasem

ส่งงาน Week 2 ขอ1คะแนน

parent 93202e3b
nodejs-60-2 @ 93202e3b
Subproject commit 93202e3b8e73c68b0fbef7141ce036c6f63d23ba
const MESSAGE = "Hello Word" ;
let name = "";
console.info(MESSAGE);
console.info("Hello Word");
/*const readline = require('readline');
const fs = require('fs');
const rl = readline.createInterface({
input: fs.createReadStream('package.json'),
crlfDelay: Infinity
}
);
rl.on('line',(line) => {
//พฤติกรรมของฟังก์ชัน
console.log('ผู้ใช้กรอกข้อมูลแล้วจ้า :'+ line );
});
rl.on('close',()=>{
console.log('ไม่มีบรรทัดเหลือให้อ่านแล้ว');
});*/
/////////////////////////////
const readline = require('readline');
const rl = readline.createInterface({
input: process.stdin,
output: process.stdout
});
rl.question('กรอกชื่อ:', (answer) => {
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/Tlex/nodejs-60-2"
},
"keywords": [
"student",
"nodejs",
"comescience",
"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