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

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

by 한선용, 이선 브라운
July 2017
Beginner to intermediate
464 pages
10h 38m
Korean
Hanbit Media, Inc.
Content preview from 러닝 자바스크립트: ES6로 제대로 입문하는 모던 자바스크립트 웹 개발
141
5
표현식과 연산자
그러면 이제 자바스크립트는 어떤 원칙으로 표현식을 그런 순서로 실행하는가 하는 의문이 들
겁니다. 즉,
y
=
x
를 먼저 실행해서
y
에 값
undefined
를 할당하고
그다음에
곱셈을 해서
y
undefined
로 남고
x
15
가 될 수도 있지 않느냐는 의문 말입니다. 자바스크립트가 표현식을
평가하는 순서를
연산자 우선순위
라 부르며, 이 장에서 설명할 겁니다.
표현식은 대부분
연산자
operator
표현식입니다. 즉 곱셈 표현식은
곱셈 연산자
(
*
)
피연산
operand
두 개로 이루어집니다. 피연산자는 서로 곱하는 두 숫자이며 피연산자 자체도 표현식
입니다.
연산자 표현식이 아닌 표현식에는
식별자 표현식
(변수와 상수 이름)
리터럴 표현식
두 가지
가 있습니다. 이름만 봐도 알 수 있을 겁니다. 변수와 상수, 리터럴은 그 자체가 표현식입니다.
표현식은 모두 평등합니다. 값이 되는 것은 모두 표현식이므로, 변수와 상수, 리터럴이 모두 표
현식인 것은 당연합니다.
5.1
연산자
연산자를 표현식의 ‘명사
noun
’에 대한 ‘동사
verb
’라고 생각해도 좋습니다. 표현식이
값이 되는 것
이라면 연산자는
값을 만드는 행동
이라는 뜻입니다. 연산자에 대한 설명은 산술 연산자로 시작
하겠습니다. 산술 연산자에 대한 경험이 없는 사람은 거의 없으니 ...
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