Test yourself on Variable Scope with exam style questions, marked instantly.
Flashcards that come back just before you would forget them.
A revision plan that remembers what you know and shows what to do next.
See which topics you have nailed and which need another look.
Quiz yourself on Variable ScopeGet your flashcardsBuild my revision planTrack my progressDeep Dive: Scope Example
global score = 0 // Global - accessible everywhere
function addPoints(points)
local bonus = 10 // Local - only in this function
score = score + points + bonus
endfunction
addPoints(5)
OUTPUT score // Works - score is global
OUTPUT bonus // ERROR - bonus doesn't exist hereMake this stick
Signing in gives access to all PrepWise features.