Toggle navigation
Toggle navigation
This project
Loading...
Sign in
robin
/
0925_assign2
Go to a project
Toggle navigation
Toggle navigation pinning
Projects
Groups
Snippets
Help
Project
Activity
Repository
Pipelines
Graphs
Issues
0
Merge Requests
0
Wiki
Snippets
Network
Create a new issue
Builds
Commits
Issue Boards
Authored by
robin*
2020-09-25 21:43:57 +0900
Browse Files
Options
Browse Files
Download
Email Patches
Plain Diff
Commit
ff2b714f3145d0a621b8c674e44c0c11fbb220fb
ff2b714f
0 parents
Initial commit
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
11 additions
and
0 deletions
main.js
main.js
0 → 100644
View file @
ff2b714
1
+
const
readline
=
require
(
'readline'
);
2
+
3
+
const
rl
=
readline
.
createInterface
({
4
+
input
:
process
.
stdin
,
5
+
output
:
process
.
stdout
6
+
});
7
+
rl
.
prompt
();
8
+
rl
.
on
(
'line'
,
(
l
)
=>
{
9
+
console
.
log
(
l
);
10
+
rl
.
prompt
();
11
+
});
Please
register
or
login
to post a comment