Skip to content
Open

Scope #137

Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions basics.tex
Original file line number Diff line number Diff line change
Expand Up @@ -474,6 +474,8 @@ \section{Functions}\label{s:basics-functions}
which means its parameters and any variables created inside it are \gref{g:local-variable}{local} to the function.
We will discuss scope in more detail in \chapref{s:callbacks}.

\figpdf{figures/basics-scope.pdf}{Variable Scope}{f:basics-scope}

\begin{aside}{Stuck in the Past}
Why did JavaScript introduce another syntax
rather than fixing the behavior of those defined with \texttt{function}?
Expand Down
2 changes: 1 addition & 1 deletion book.tex
Original file line number Diff line number Diff line change
Expand Up @@ -53,4 +53,4 @@

% \printindex

\end{document}
\end{document}
Binary file added figures/basics-scope.pdf
Binary file not shown.
3 changes: 3 additions & 0 deletions figures/basics-scope.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.