How can I modify $scope.variable1 if it is passed to a function as a parameter?
124
Is JavaScript a pass-by-reference or pass-by-value language?
29612
How to find the name of a variable that was passed to a function?
45188
How do I pass a variable by reference?
49418
How does data binding work in AngularJS?
130954
Accessing the Id parameter in VF page passing it to Javascript function
53851
What is the difference between '@' and '=' in directive scope in AngularJS?
121296
How to pass the value 'undefined' to a function with multiple parameters?
74448
Global variables in AngularJS
64812
Modifying $view in hook_views_pre_render()
140230
C# variable scoping: 'x' cannot be declared in this scope because it would give a different meaning to 'x'
30719
How to modify function argument?
20681
Is there a better way to do optional function parameters in JavaScript?
123288
Dynamically set local variable
9122
Setting a function equal a variable?
27136
Reference: What is variable scope, which variables are accessible from where and what are "undefined variable" errors?
65173
SOQL bind variable scope behavior
16454
Enforcing correct variable bindings and avoiding renamings for conflicting variables in nested scoping constructs