Skip to content

Instantly share code, notes, and snippets.

@khg0712
Created May 19, 2018 16:35
Show Gist options
  • Save khg0712/9503430987f4a5d7d0b16da7aa6c1fc2 to your computer and use it in GitHub Desktop.
Save khg0712/9503430987f4a5d7d0b16da7aa6c1fc2 to your computer and use it in GitHub Desktop.
함수 표현식 함수 호이스팅 비교 예시
add(1,2);//에러 발생
var add = function(a,b) {
return a + b;
};
add(1,2);//3 반환
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment