Edit:
How can I return a value for a parent function?
function returningFn() {
function otherFn() {
var value = 123;
return value; //For returningFn
}
}
I would like returningFn to return the value… How do I do this??? I can’t get it to work…
JSFiddle