Skip to Content
자바스크립트 완벽 가이드
book

자바스크립트 완벽 가이드

by David Flanagan, Han Seon- yong
February 2022
Beginner to intermediate
784 pages
24h 53m
Korean
Insight
Content preview from 자바스크립트 완벽 가이드
JavaScript
22
2장 어휘 구조
바스크립트는 해석하고 있는 소스 코드가 이미 정규화를 마친 상태라고 가정하여,
스스로 정규화를 수행하지는 않습니다. 자바스크립트 프로그램에서 유니코드 문
자를 쓸 계획이라면 에디터나 다른 도구에서 소스 코드를 유니코드 정규화해서 서
로 다르지만 눈으로는 구분할 수 없는 식별자가 생기지 않게 해야 합니다.
2.6
󻗯󼖬󽴔󻕻󼨼󻱇󽴔󻘇󻃇󼐫󺴯
다른 프로그래밍 언어와 마찬가지로 자바스크립트 역시 세미콜론(
;
)을 사용해 문
(5장 참고)을 구분합니다. 세미콜론은 코드의 의미를 명확히 하는 데 중요한 역할
을 합니다. 구분자가 없다면 어떤 문의 끝과 다음 문의 시작을 구분하기가 쉽지 않
습니다. 자바스크립트에서 두 문 사이에 줄바꿈이 있을 때는 대부분 세미콜론을 생
략해도 됩니다. 프로그램의 끝에서도 생략할 수 있고, 그다음 토큰이 닫는 중괄호
(
}
)일 때도 생략할 수 있습니다. 세미콜론이 반드시 필요하지 않은 경우라도 세미
콜론을 써서 문이 끝났음을 명확히 표시하는 프로그래머가 많고, 이 책에서도 그
관습을 따릅니다. 반대로 세미콜론을 가능한 한 생략하며 꼭 필요할 때만 쓰는 사
람도 있습니다. 어떤 스타일을 택하든, 선택 사항인 세미콜론에 대해 이해해야 할
세부 사항이 몇 가지 있습니다.
다음 코드를 보십시오. 두 문 사이에 줄바꿈이
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