Skip to content

Commit

Permalink
fix: build error
Browse files Browse the repository at this point in the history
  • Loading branch information
gloriaJun committed May 25, 2023
1 parent b7f0925 commit 68688da
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions apps/doc/blog/frontend/2018/10-31-js-async-await.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -35,8 +35,8 @@ getData(function (tableData) {

## Promise

ECMA Script6에 정식으로 추가된 문법으로 비동기 계산을 위해 사용되는 객체이다.
promise의 그대로 *약속*으로 이해하면 쉬운 같다.
ECMA Script6에 정식으로 추가된 문법으로 비동기 계산을 위해 사용되는 객체이다.
promise의 그대로 *약속*으로 이해하면 쉬운 같다.
즉, "지금은 아니지만, 곧 해당 약속한 부분을 완료하겠다"라는 뜻으로....

#### 구문
Expand Down Expand Up @@ -94,7 +94,7 @@ get()

## Generator (co)

[co](github.com/tj/co)는 Generator를 이용한 control flow 모듈로써 내부적으로 promise를 사용하여 구현되어 있다.
[co](https://github.com/tj/co)는 Generator를 이용한 control flow 모듈로써 내부적으로 promise를 사용하여 구현되어 있다.

#### 예제

Expand Down Expand Up @@ -174,7 +174,7 @@ function loadData() {
var parsed = JSON.parse(response);
console.log(parsed);
}).catch(function(e) { // Catches asynchronous errors
console.log(e);
console.log(e);
});
} catch(e) {
console.log(e);
Expand Down

0 comments on commit 68688da

Please sign in to comment.