Non-local variable: Difference between revisions

Content deleted Content added
CE
m Outer shouldn't return the function inner - it should be running inner by using 'inner()'.
Line 13:
x += 1
print(x)
return inner()
</source>
 
Line 24:
console.log(x);
}
return inner();
}
</source>