Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[p:134] 코드 문의? #22

Open
GimYoungPhil opened this issue Sep 27, 2018 · 1 comment
Open

[p:134] 코드 문의? #22

GimYoungPhil opened this issue Sep 27, 2018 · 1 comment

Comments

@GimYoungPhil
Copy link

GimYoungPhil commented Sep 27, 2018

promise.then(
  value => console.log(`promise ${value}`),
  error => console.error(`promise ${error}`),
);

promise.then(
  value => console.log(`첫번째 promise ${value}`),
  error => console.error(`두번째 promise ${error}`),
);

콘솔에 출력된 결과와 같게 되려면 아래와 같이 수정해야 합니다.

promise.then(
  value => console.log(`첫번째 promise ${value}`),
  error => console.error(`첫번째 promise ${error}`),
);

promise.then(
  value => console.log(`두번째 promise ${value}`),
  error => console.error(`두번째 promise ${error}`),
);
@sculove
Copy link
Owner

sculove commented Sep 29, 2018

@GimYoungPhil
책하고 코드의 예제도 다르게 수정되었네요.
아마 편집과정에서 변경된것 같습니다.
감사합니다.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants