Edit in JSFiddle
JavaScript
HTML
CSS
Result
// 함수 선언문 hoisting(); function hoisting() { var value = 10; console.log(value); // 10 }