When a line uses a function that hasn’t been declared somewhere above that line, that function is said to be out of scope.
I recommend that you move the upTo function further up, so that it’s by those hide/show functions.
When a line uses a function that hasn’t been declared somewhere above that line, that function is said to be out of scope.
I recommend that you move the upTo function further up, so that it’s by those hide/show functions.