-
[TIL] Algorithm 13Develope/Algorithm 2020. 7. 28. 12:44
algorithm logo ◎ 문제 7: 변수명
다음 중 변수명으로 사용할 수 없는 것 2개를 고르시오.
1. age
2. Age
3. let
4. _age
5. 1age
◎ 정답
- 3번, 5번
◎ 해설
- Javascript 식별자는 문자, 언더바(_), 달러 기호($)로 시작해야 하며 let은 이미 Javascript 문법에 존재하는 예약어라
변수로 사용이 불가능하다.
'Develope > Algorithm' 카테고리의 다른 글
[TIL] Algorithm 15 (0) 2020.07.28 [TIL] Algorithm 14 (0) 2020.07.28 [TIL] Algorithm 12 (0) 2020.07.27 [TIL] Algorithm 11 (0) 2020.07.27 [TIL] Algorithm 10 (0) 2020.07.27