Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in / Register
Toggle navigation
T
toppic1
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Packages
Packages
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
jakkree kongpha
toppic1
Commits
36b316bd
Commit
36b316bd
authored
Jul 01, 2020
by
jakkree kongpha
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Add readinfo
parent
d4379919
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
7 additions
and
0 deletions
+7
-0
readinfo.js
readinfo.js
+7
-0
No files found.
readinfo.js
0 → 100644
View file @
36b316bd
const
readline
=
require
(
'readline'
);
const
rl
=
readline
.
createInterface
({
input
:
process
.
stdin
,
output
:
process
.
stdout
});
rl
.
question
(
'กรอกปีเกิด'
,
(
year
)
=>
{
console
.
log
(
`ตอนนี้อายุ
${
2563
-
year
}
ปี`
);
rl
.
close
();
})
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment