함수 내에서 변수를 수정 한 후에도 변수가 변경되지 않는 이유는 무엇입니까? -비동기 코드 참조 다음 예 outerScopeVar에서 모든 경우에 정의되지 않은 이유는 무엇입니까? var outerScopeVar; var img = document.createElement('img'); img.onload = function() { outerScopeVar = this.width; }; img.src = 'lolcat.png'; alert(outerScopeVar); var outerScopeVar; setTimeout(function() { outerScopeVar = 'Hello Asynchronous World!'; }, 0); alert(outerScopeVar); // Example using ..