…), which means the closure of
f1() gives us access to only the scope of
f1() plus the global scope. The scope where we execute
f1() does not affect that closure. In fact, the closure of
f1() will not give us access to the scope of
f2() at all. If you remove the global
v variable and execute this code, you’ll get a reference error:
It’s kind of curious isn’t it? Here we are worrying people will work less if we guarantee a basic income, and the reality of the situation is that people are presently working too much, and it is costing all of us. Combine this with the fact there’s 3 people seeking every 1 available job, and the obvious solution is that we actually want people to be able to choose to work less, to free up more positions for those seeking jobs who are currently being excluded from the labor market.