http://www.nextree.co.kr/p7363/
Hoisting
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
|
//Hoisting
function hoistingExam(){
var value =20;
console.log("value="+value);
var value =10;
console.log("value="+value);
}
hoistingExam();
//실행결과
/*
value= 20
value= 10
*/
|
cs |
'Programing > JavaScript' 카테고리의 다른 글
Array .isArray () // 배열인지 ? (0) | 2019.01.23 |
---|---|
delete operator // 객체에서 삭제 (0) | 2019.01.23 |
논리연산자 (0) | 2019.01.23 |
Truthy and Falsy Values in JavaScript (0) | 2019.01.23 |
Double Exclamation Mark(느낌표 두개) (0) | 2019.01.23 |