(11) Asynchronous JavaScript - then() 메소드
Promise를 다루는 방법에 대해 두 가지가 있다고 했을 떄,https://seop-e.tistory.com/209 (6) Asynchronous JavaScript - Promies 다루는 방법Promise 다루는 방법은 크게 두가지 있다.async 함수와 await 문법then() 메소드 + Callback먼저 async 함수와 await 문법을 다뤄보자await 문법fetch 함수는 Promise 객체를 리턴한다고 했을 때비동기 작업이 완seop-e.tistory.comasync 함수와 await 문법then() 메소드 + Callbackthen 메소드를 이용해서 Promise를 다뤄보자.then() 메소드자바스크립트에서 비동기 코드를 잘 활용하려면async, await, then 전부 다 알고 ..