Timeline for Can't access variable outside the function even it isn't local
Current License: CC BY-SA 4.0
8 events
| when toggle format | what | by | license | comment | |
|---|---|---|---|---|---|
| Dec 11, 2022 at 16:19 | vote | accept | kobayashi | ||
| Dec 11, 2022 at 16:13 | answer | added | Chris Davies | timeline score: 1 | |
| Dec 11, 2022 at 16:09 | comment | added | kobayashi | @roaima Got it. Thank you! | |
| Dec 11, 2022 at 15:51 | comment | added | Chris Davies | If you don't call the function there is no scope except the global (undefined) one | |
| Dec 11, 2022 at 15:40 | comment | added | kobayashi | @KamilMaciorowski Yes, this is a whole script. I didn't call function. Just wanted to test the scope of variable. | |
| Dec 11, 2022 at 13:34 | comment | added | Kamil Maciorowski | Is this the whole script? You defined the function. Where and how do you actually call it? | |
| S Dec 11, 2022 at 13:04 | review | First questions | |||
| Dec 11, 2022 at 16:26 | |||||
| S Dec 11, 2022 at 13:04 | history | asked | kobayashi | CC BY-SA 4.0 |