Skip to Content
자바스크립트 완벽 가이드
book

자바스크립트 완벽 가이드

by David Flanagan, Han Seon- yong
February 2022
Beginner to intermediate
784 pages
24h 53m
Korean
Insight
Content preview from 자바스크립트 완벽 가이드
the De󼴩nitive Guide
131
5.5 점프 문
티와 메서드는 기본적으로 열거 가능합니다. 14.1절에서 이들을 열거 불가로 전환
하는 방법을 설명합니다.
열거 가능한 상속된(6.3.2절) 프로퍼티 역시
for
/
in
루프의 순회 대상에 속합니
다. 따라서 모든 객체에서 상속하는 프로퍼티를 정의하고
for
/
in
루프를 사용한다
면 결과가 예상과 다를 수 있습니다. 이 때문에 많은 프로그래머가
for
/
in
루프 대
신
Object.keys()
와
for
/
of
루프를 조합하길 선호합니다.
for
/
in
루프의 바디에서 아직 열거되지 않은 프로퍼티를 삭제한다면 그 프로퍼
티는 순회 대상에서 빠집니다. 루프 바디에서 객체에 새 프로퍼티를 정의한다면 그
프로퍼티는 순회 대상에 있을 수도 있고 없을 수도 있습니다.
for
/
in
이 객체 프로
퍼티를 열거하는 순서는 6.6.1절에서 설명합니다.
5.5
󻳟󼧓󽴔󻀇
자바스크립트 문에는
점프 문
점프 문이라는 카테고리도 있습니다. 이름에서 짐작할 수 있
듯 이들은 자바스크립트 인터프리터가 소스 코드의 다른 위치로 이동하게 합니
다.
break
문은 인터프리터를 루프를 비롯한 다른 문의 끝으로 이동시킵니다.
con
tinue
문은 루프 바디의 나머지를 생략하고 루프 맨 위로 돌아가 새 반복을 시작하
게 합니다. 자바스크립트는 문에 라벨, 즉 ...
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

개발자를 위한 필수 수학

개발자를 위한 필수 수학

토머스 닐드
개발 7년차, 매니저 1일차

개발 7년차, 매니저 1일차

권원상, 한민주, 카미유 푸르니에

Publisher Resources

ISBN: 9788966263462