Commit 92f0c884 authored by Thanawit Thisanon's avatar Thanawit Thisanon

ส่งงาน week2

parent db8eecde
const massage = "Helo world";
let name ="";
console.info(massage);
/*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 from file: ${line}`);
});*/
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 partailly entered fullname.",
"main": "index.js",
"scripts": {
"test": "echo \"Error: no test specified\" && exit 1"
},
"repository": {
"type": "git",
"url": "http://projectcs.sci.ubu.ac.th/Thanawit/nodejs-60-2"
},
"keywords": [
"student",
"nadejs",
"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