객체의 유연한 성질 때문에 커스텀 데이터 타입을 만들 때 객체를 많이 사용합니다. 자바스크
립트에는 다음과 같이 몇 가지 내장된 객체 타입이 있습니다.
●
Array
●
Date
●
RegExp
●
Map
과
WeakMap
●
Set
과
WeakSet
마지막으로, 원시 타입 중 숫자와 문자열, 불리언에는 각각 대응하는 객체 타입인
Number
,
String
,
Boolean
이 있습니다. 이들 대응하는 객체에 실제 값이 저장되지는 않습니다. 이들은
대응하는 원시 값에 기능을 제공하는 역할을 합니다. 이들 객체 타입은 대응하는 원시 값과 함
께 설명할 겁니다.
3.6
숫자
3
이나
5
.
5
,
1
,
000
,
000
처럼 컴퓨터가 정확히 나타낼 수 있는 숫자도 있지만, 근사치로만 표현
할 수 있는 숫자도 많습니다. 예를 들어
π
는 절대 컴퓨터로 표현할 수 없습니다. 원주율을 구
성하는 숫자는 무한하고 반복되지도 않기 때문입니다.
10
/
3
같은 숫자는 특별한 테크닉을 써서
나타낼 수 있긴 하지만, ...
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.
O’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
I 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
I’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
I'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.