[Codestates] 2021. 6. 22

민병대·2021년 6월 22일
0

Codestates

목록 보기
24/45

비동기

비동기

  • 요청에 대한 결과가 동시에 일어나지 않는다

Promise

return new Promise((resolve, reject) => {}).then()

Promise.all

return Promise.all([funtion, funtion]).then()

Node.js 내장 모듈

fs.readFile(path[, options], callback)
fs.readFile('/etc/passwd', ..., ...)

asyncAwait

async () => {
	await funtion();
  	await funtion();
  return 
}
profile
마케터 출신 개발자

0개의 댓글

관련 채용 정보