en.javascript.info/1-js/06-advanced-functions/03-closure/5-function-in-if/solution.md
Ilya Kantor 964ed57c42 closure
2019-12-26 14:59:57 +03:00

3 lines
No EOL
135 B
Markdown

The result is **an error**.
The function `sayHi` is declared inside the `if`, so it only lives inside it. There is no `sayHi` outside.