KnowledgeHub
Questions
Tags
Users
Search
Alex Rivera
|
Logout
Edit Question
Title
Body
Given the following JavaScript: var someFunction = function(id) { //do some stuff var modifyId = function(id) { //do some stuff outer.id = id; //is there any way to modify the id variable in the outer scope from here? } } How do you modify the id passed into the outer function scope from within the inner function scope?
Tags (comma-separated)
Save Edits
Cancel