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
99
4.11 할당 표현식
값으로 변환한 다음 부정합니다. 따라서
!
는 항상
true
또는
false
를 반환하며,
!!x
처럼 이 연산자를 두 번 적용하면 값
x
를 그와 동등한 불 값으로 변환할 수 있습니
다(3.9.2절 참고).
!
는 단항 연산자이므로 우선순위가 높고 피연산자와 단단히 결합됩니다.
p && q
같은 표현식을 부정하고 싶다면
!(p && q)
처럼 괄호를 써야 합니다. 불 대수학의
두 명제를 자바스크립트 문법으로 표현할 수 있다는 점을 알고 넘어가는 것도 좋겠
습니다.
//
드
모르간의
법칙
!(p && q)
===
(!p
||
!q) //
=
> true: p
와
q
의
값이
어떻든
관계없습니다
.
!(p
||
q)
===
(!p && !q) //
=
> true: p
와
q
의
값이
어떻든
관계없습니다
.
4.11
󼨯󺟈󽴔󼤫󼫓󻞬
자바스크립트는
=
연산자를 사용해 변수나 프로퍼티에 값을 할당합니다. 예를 들
어 다음을 보십시오.
i
=
0; //
변수
i
에
0
을
할당합니다
.
o.x
=
1; //
객체
o
의
x
프로퍼티에
1
을
할당합니다
.
=
연산자는 왼쪽 피연산자가 왼쪽 값, 즉 변수나 객체 프로퍼티 또는 배열 요소일
것으로 예상합니다. 오른쪽 피연산자는 어떤 타입이든, 어떤 값이든 상관없습니다.
할당 표현식의 값은 오른쪽 피연산자의 ...
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