Open
Conversation
Collaborator
Author
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Q1.
프로미스의 후속 처리 메서드(
then,catch,finally)의 콜백 함수는 ______ 큐에 저장되고, 이 큐는 태스크 큐보다 ( ) 순위로 실행된다.Q2.
다음 중
Promise의 상태 변화에 대한 설명으로 옳지 않은 것은?pending상태는 비동기 처리가 아직 수행되지 않은 상태이다.resolve함수가 호출되면fulfilled상태로 변한다.reject함수가 호출되면rejected상태로 변한다.fulfilled가 된 프로미스는 다시pending상태로 돌아갈 수 있다.Q3.
다음 실행 결과는?
Q4.
다음 중
async/await에 대한 설명으로 옳은 것은?async함수는 항상Promise를 반환한다.await키워드는 동기적으로 스레드를 멈춘다.async함수 내부에서throw는 단순한 예외이며,reject상태와는 무관하다.await은Promise의 후속 처리 메서드인then을 대체하지 않는다.