Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in / Register
Toggle navigation
P
Project1-63
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
Lalita
Project1-63
Commits
fb7d4a5a
Commit
fb7d4a5a
authored
Jun 24, 2020
by
Lalita
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
add year
parent
9e0137f3
Pipeline
#968
failed with stages
Changes
1
Pipelines
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
1 deletion
+2
-1
readinfo.js
24 06 2020/readinfo.js
+2
-1
No files found.
24 06 2020/readinfo.js
View file @
fb7d4a5a
...
...
@@ -4,6 +4,6 @@ const readline = require('readline');
const
rl
=
readline
.
createInterface
({
input
:
process
.
stdin
,
output
:
process
.
stdout
});
rl
.
question
(
'กรอกปีเกิด '
,
(
year
)
=>
{
console
.
log
(
'ตอนนี้อายุ ${2563-year} ปี'
);
console
.
log
(
`ตอนนี้อายุ
${
2563
-
year
}
ปี`
);
rl
.
close
();
})
\ No newline at end of file
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