Created
September 8, 2021 07:42
-
-
Save QuatoHub/aff3f814bbf3153b748f3250900f819c to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
function foo() { | |
return; | |
{ | |
} | |
// ASI의 동작 결과 => return; {}; | |
// 개발자의 예측 => return {}; | |
} | |
console.log(foo()); // undefined | |
var bar = (function () {})(function () {})(); | |
// ASI의 동작 결과 => var bar = frunction () {}(function() {})(); | |
// 개발자의 예측 => var bar = frunction () {}; (function() {})(); | |
// TypeError: (intermediate value)(...) is not a funtion |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment