밑줄 한 개 또는 두 개로 시작하는 식별자는 아주 특별한 상황, 또는 ‘내부’ 변수에서만 사용합니다. 자신만의
특별한 변수 카테고리를 만들지 않는 한, 변수나 상수 이름을 밑줄로 시작하지 마십시오.
●
제이쿼리를 사용할 경우, 달러 기호로 시작하는 식별자는 보통 제이쿼리 객체라는 의미입니다. 제이쿼리는
19
장에서 설명합니다.
3.4
리터럴
우리는 이미
리터럴
literal
을 사용했습니다. 앞에서
currentTempC
에 값을 할당할 때 사용
한
22
와
22
.
5
가
숫자형 리터럴
입니다. 마찬가지로,
room1
을 초기화 할 때
문자열 리터럴인
"
conference
_
room
_
a
"
를 사용했습니다. 리터럴이라는 단어는 값을 프로그램 안에서 직접 지정
한다는 의미입니다. 리터럴은
값을 만드는 방법
입니다. 자바스크립트는 당신이 제공한 리터럴
값을 받아 데이터를 만듭니다.
리터럴
과
식별자
identifier
의 차이를 이해하는 것이 중요합니다. 예를 들어 앞에서
room1
변수에
값
"
conference
_
room
_
a
"
을 할당한 것을 생각해 봅시다.
room1 ...
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.
O’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
I 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
I’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
I'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.