javascript scope Oct 17, 2009 • Fred Yang In JavaScript, {blocks} do not have scope. Only functions have scope. Vars defined in a function are not visible outside of the function. Please enable JavaScript to view the comments powered by Disqus.