Javascript future scope
This was almost magic for me.
In javascript functions can have non local inputs in them which are only declared post the function declaration.
Elaborating this a bit
It boggled me initially how the definition of function checkPerson
was able to
understand what person
is, turns out it’s some js magic!
Updated on