Top "Scope" questions

Scope is an enclosing context where values and expressions are associated.

In Haskell, when do we use in with let?

In the following code, the last phrase I can put an in in front. Will it change anything? Another question: …

haskell scope whitespace where-clause let
Mixing extern and const

Can I mix extern and const, as extern const? If yes, does the const qualifier impose it's reign only within …

c++ c constants scope extern
C# - anonymous functions and event handlers

I have the following code: public List<IWFResourceInstance> FindStepsByType(IWFResource res) { List<IWFResourceInstance> retval = new List&…

c# scope anonymous-methods
Angular JS Action on ng-change the select dropdown

I have a simple table with three rows and two values for each row - date and state: <tbody&…

angularjs select scope angularjs-ng-change
Javascript scope addEventListener and this

I am a C# developer experimenting with JavaScript and I'm trying to get my head around the scope :) I have …

javascript scope this addeventlistener
Chrome extension code vs Content scripts vs Injected scripts

I am trying to get my Chrome Extension to run the function init() whenever a new page is loaded, but …

javascript google-chrome-extension scope content-script
Access a variable outside the scope of a Handlebars.js each loop

I have a handlebars.js template, just like this: {{externalValue}} <select name="test"> {{#each myCollection}} <option value="{{…

javascript templates scope each handlebars.js
JavaScript Callback Scope

I'm having some trouble with plain old JavaScript (no frameworks) in referencing my object in a callback function. function foo(…

javascript events binding scope callback
Why can't we define a variable inside an if statement?

Maybe this question has been answered before, but the word if occurs so often it's hard to find it. The …

c# language-design scope
Understanding Service Worker scope

I am trying to implement a Service Worker in a test page. My end goal is an application that operates …

javascript scope service-worker