Skip to Content
러닝 자바스크립트: ES6로 제대로 입문하는 모던 자바스크립트 웹 개발
book

러닝 자바스크립트: ES6로 제대로 입문하는 모던 자바스크립트 웹 개발

by 한선용, 이선 브라운
July 2017
Beginner to intermediate
464 pages
10h 38m
Korean
Hanbit Media, Inc.
Content preview from 러닝 자바스크립트: ES6로 제대로 입문하는 모던 자바스크립트 웹 개발
312
러닝 자바스크립트
function
*
theFutureIsNow
() {
const
dataA
=
yield
nfcall
(
fs
.
readFile
, '
a
.
txt
');
const
dataB
=
yield
nfcall
(
fs
.
readFile
, '
b
.
txt
');
const
dataC
=
yield
nfcall
(
fs
.
readFile
, '
c
.
txt
');
yield
ptimeout
(
60
*
1000
);
yield
nfcall
(
fs
.
writeFile
, '
d
.
txt
',
dataA
+
dataB
+
dataC
);
}
콜백 헬보다는 훨씬 낫고, 프라미스 하나만 쓸 때보다 더 단순합니다. 사람이 생각하는 것과 거
의 같은 방법으로 동작합니다. 실행 또한 간단합니다.
grun
(
theFutureIsNow
);
14.4.1
1보 전진과 2보 후퇴?
“그냥 세 개의 파일을 동시에 읽으면 더 효율적이지 않나?” 예리한 질문을 하는 독자도 있을 겁
니다. 그 질문에 대한 답은 문제에 따라, 자바스크립트 엔진에 따라, 운영체제에 따라, 파일시
스템에 따라 크게 다를 수 있습니다. 하지만 복잡한 부분은 잠시 미뤄두고, 세 파일을 읽는
서는 상관이 없다
는 것, 그리고 설령 세 파일을 동시에 읽었다 한들 과연 효율적일지는 의문스
럽다는 점을 상기합시다.
theFutureIsNow
함수를 이런 식으로 만든 것은, ...
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.

Read now

Unlock full access

More than 5,000 organizations count on O’Reilly

AirBnbBlueOriginElectronic ArtsHomeDepotNasdaqRakutenTata Consultancy Services

QuotationMarkO’Reilly covers everything we've got, with content to help us build a world-class technology community, upgrade the capabilities and competencies of our teams, and improve overall team performance as well as their engagement.
Julian F.
Head of Cybersecurity
QuotationMarkI wanted to learn C and C++, but it didn't click for me until I picked up an O'Reilly book. When I went on the O’Reilly platform, I was astonished to find all the books there, plus live events and sandboxes so you could play around with the technology.
Addison B.
Field Engineer
QuotationMarkI’ve been on the O’Reilly platform for more than eight years. I use a couple of learning platforms, but I'm on O'Reilly more than anybody else. When you're there, you start learning. I'm never disappointed.
Amir M.
Data Platform Tech Lead
QuotationMarkI'm always learning. So when I got on to O'Reilly, I was like a kid in a candy store. There are playlists. There are answers. There's on-demand training. It's worth its weight in gold, in terms of what it allows me to do.
Mark W.
Embedded Software Engineer

You might also like

웹 애플리케이션 보안: 정찰, 공격, 방어 세 단계로 배우는 웹 애플리케이션 보안의 모든 것

웹 애플리케이션 보안: 정찰, 공격, 방어 세 단계로 배우는 웹 애플리케이션 보안의 모든 것

최용, 앤드루 호프먼

Publisher Resources

ISBN: 9788968483387