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
45
3.5 null과 unde󼴩ned
항
!
연산자는 불 NOT 연산을 수행합니다. 이 연산자는 피연산자가
false
같은 값
이면
true
로, 피연산자가
true
같은 값이면
false
로 평가됩니다. 예를 들어 다음을
보십시오.
if ((x
===
0 && y
===
0)
||
!(z
===
0)) {
// x
와
y
가
모두
0
이거나
, z
가
0
이
아닐
때
}
이들 연산자에 대해서는 4.10절에서 자세히 설명합니다.
3.5
󺇋󼴩
null
은 값이 없음을 나타낼 때 사용하는 특별한 값입니다.
null
에
typeof
연산자를
사용하면 문자열 “object”를 반환하는데, 이로 미루어
null
은 ‘객체가 없다’는 것을
나타내는 특별한 객체 값이라고 볼 수 있습니다. 하지만 현실에서
null
은 해당 타
입의 유일한 멤버로 인식되며, 객체뿐 아니라 숫자나 문자열에도 ‘값이 없다’는 의
미로 사용될 수 있습니다. 대부분의 프로그래밍 언어에
NULL
,
nil
,
None
등 자바스
크립트의
null
과 동등한 값이 있습니다.
자바스크립트에는 값이 없음을 나타내는 값이 하나 더 있습니다.
undefined
값
은 좀 다른 의미에서 값이 없음을 나타냅니다. 이 값은 초기화되지 않은 변수의 값
이며 존재하지 않는 객체 프로퍼티나 배열 요소에 ...
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