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

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

by 한선용, 이선 브라운
July 2017
Beginner to intermediate
464 pages
10h 38m
Korean
Hanbit Media, Inc.
Content preview from 러닝 자바스크립트: ES6로 제대로 입문하는 모던 자바스크립트 웹 개발
81
3
리터럴과 변수, 상수, 데이터 타입
str
은 먼저 불변인 값
"
hello
"
로 초기화됐고, 다시 새로운 불변값
"
world
"
를 할당받았습니다.
중요한 것은
"
hello
"
"
world
"
가 서로 다른 문자열이라는 겁니다. 바뀐 것은
str
이 저장하는
값뿐입니다. 이런 차이는 대개 이론적인 것이지만, 알고 있으면
6
장에서 함수를 설명할 때 도
움이 됩니다.
이들 여섯 가지 원시 타입 외에
객체
가 있습니다. 원시 값과 달리 객체는 여러 가지 형태와 값
을 가질 수 있습니다.
객체의 유연한 성질 때문에 커스텀 데이터 타입을 만들 때 객체를 많이 사용합니다. 자바스크
립트에는 다음과 같이 몇 가지 내장된 객체 타입이 있습니다.
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.

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