Toggle navigation
Toggle navigation
This project
Loading...
Sign in
진성욱
/
OSS
Go to a project
Toggle navigation
Toggle navigation pinning
Projects
Groups
Snippets
Help
Project
Activity
Repository
Graphs
Network
Create a new issue
Commits
Issue Boards
Authored by
진성욱
2021-10-04 18:33:30 +0900
Browse Files
Options
Browse Files
Download
Email Patches
Plain Diff
Commit
35288695b2e34259298f4ae5d28df55a3c0a00f8
35288695
1 parent
5ca3d884
Add Assignment02
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
14 additions
and
0 deletions
Experiments/nodejs/Assignments/02/index.js
Experiments/nodejs/Assignments/02/index.js
0 → 100644
View file @
3528869
const
doSomethingAsync
=
()
=>
{
return
new
Promise
(
resolve
=>
{
setTimeout
(()
=>
resolve
(
'I did something'
),
3000
)
})
}
// doSomething 함수를 async await 형태로 변경하시오
const
doSomething
=
()
=>
{
doSomethingAsync
().
then
(
a
=>
console
.
log
(
a
))
}
console
.
log
(
'Before'
)
doSomething
()
console
.
log
(
'After'
)
Please
register
or
login
to post a comment