Simple code is: function bodyOnLoad() { const outerValue = 'ipsum'; function inner() { var innerVaue = 'test test'; debugger; } inner(); }
-
-
Awesome pro-tip.
Hvala. Twitter će to iskoristiti za poboljšanje vaše vremenske crte. PoništiPoništi
-
-
-
You might then ask why this doesn't happen automatically. Well, the function may be on the stack several times, e.g. in a recursion, so the same variable may have different values depending on which stack frame it belongs to.
-
Not sure I understand even in recursion, seems like if the VALID value is accessible by clicking the prior callstack frame, then if the lambda doesn't have the value in its stack, then it auto-walks back the stack (just like a click would) to get the valid from the outer frames.
- Još 10 drugih odgovora
Novi razgovor -
-
-
Is there any visual way to show scope depth like a highlight color gradient for every function that goes deeper. Very pale blue towards a darker blue, with current line as green?
-
Novi razgovor -
-
-
Using Linux on the desktop like a boss
Hvala. Twitter će to iskoristiti za poboljšanje vaše vremenske crte. PoništiPoništi
-
Čini se da učitavanje traje već neko vrijeme.
Twitter je možda preopterećen ili ima kratkotrajnih poteškoća u radu. Pokušajte ponovno ili potražite dodatne informacije u odjeljku Status Twittera.