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:46:41 +0900
Browse Files
Options
Browse Files
Download
Email Patches
Plain Diff
Commit
c9a2c55a00ae338eed66f643e972786f061279a1
c9a2c55a
1 parent
ff2b714f
Implement exit feature
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
0 deletions
main.js
main.js
View file @
c9a2c55
...
...
@@ -6,6 +6,9 @@ const rl = readline.createInterface({
});
rl
.
prompt
();
rl
.
on
(
'line'
,
(
l
)
=>
{
if
(
l
.
trim
().
toLowerCase
()
===
'exit'
)
{
process
.
exit
();
}
console
.
log
(
l
);
rl
.
prompt
();
});
...
...
Please
register
or
login
to post a comment