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

자바스크립트 완벽 가이드

by David Flanagan, Han Seon- yong
February 2022
Beginner to intermediate
784 pages
24h 53m
Korean
Insight
Content preview from 자바스크립트 완벽 가이드
JavaScript
182
7장 배열
에서 설명할 배열 조작 메서드가 많이 포함되어 있습니다. 이런 메서드는 대부분
배열뿐만 아니라 배열 비슷한 객체에서도 정확히 동작하는 범용 메서드입니다. 배
열 비슷한 객체는 7.9절에서 설명합니다. 마지막으로 자바스크립트 문자열은 문자
로 구성된 배열처럼 동작하며 7.10절에서 이에 관해 설명합니다.
ES6에서 형식화 배열(typed array)이라 뭉뚱그려 부르는 새로운 배열 클래스를
몇 가지 도입했습니다. 형식화 배열은 일반적인 배열과 달리 길이가 고정적이며 요
소 타입도 숫자로 고정되어 있습니다. 형식화 배열은 아주 빠르고 이진 데이터에
바이트 수준에서 접근할 수 있습니다. 11.2절에서 설명합니다.
7.1
󻃿󻫃󽴔󻖬󻘀
배열을 만드는 방법은 여러 가지입니다. 이어지는 하위 절에서 배열을 생성하는 방
법을 설명합니다.
·
·
배열 리터럴
·
·
이터러블 객체에 분해 연산자
...
적용
·
·
Array()
생성자
·
·
Array.of()
와
Array.from()
팩토리 메서드
7.1.1
󻃿󻫃󽴔󺹻󼗿󺳃
배열을 만드는 가장 단순한 방법은 배열 리터럴입니다. 배열 리터럴은 배열 요소를
대괄호 안에서 콤마로 구분한 리스트 형태입니다. 예를 들어 다음을 보십시오.
let empty
=
[]; //
요소가
없는
배열
let primes
=
[2, ...
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