티스토리 뷰
변수
Ex1
let tempString = "test";
let tempNum = 123;
consloe.log(tempString);
consloe.log(tempNum);
결과
test
123
Ex2
var tempString = "test";
var tempNum = 123;
consloe.log(tempString);
consloe.log(tempNum);
결과
test
123
Ex3
var tempString = "test";
var tempNum = 123;
tempNum = tempString;
consloe.log(tempString);
consloe.log(tempNum);
결과
test
test
상수
Ex1
const tempString = "test";
tempString = "abc";
결과
상수값을 변경하려고 하기에 에러 발생.
'Web > JavaScript & NodeJS' 카테고리의 다른 글
모듈 등록 require (0) | 2020.05.27 |
---|---|
URL parsing 하여 객체 가져오기 (0) | 2020.05.25 |
URL 의 구조 (0) | 2020.05.25 |
문자열을 편리하게 표현 'Template Literal' or 'Template String' (0) | 2020.05.25 |
nvm으로 nodejs의 버전 관리를 해보자 (0) | 2020.05.24 |
댓글
공지사항
최근에 올라온 글
최근에 달린 댓글
- Total
- Today
- Yesterday
링크
TAG
- Lambda
- 람다
- LambdaFunction
- unrealengine
- double free
- UE4
- Trouble shooting
- bug
- c++
- 람다함수
- coordinate system
- c++11
- UE5
- rotator
- C
일 | 월 | 화 | 수 | 목 | 금 | 토 |
---|---|---|---|---|---|---|
1 | ||||||
2 | 3 | 4 | 5 | 6 | 7 | 8 |
9 | 10 | 11 | 12 | 13 | 14 | 15 |
16 | 17 | 18 | 19 | 20 | 21 | 22 |
23 | 24 | 25 | 26 | 27 | 28 |
글 보관함