counter
A variable that keeps count, like lap. It usually starts at 0 and goes up by 1 each time something happens.
defined count
A set number that a count must reach before something happens, like "after 12 laps" or "every 4th lap".
event
Something that happens in a program, like the computer saying a message or a robot turning.
sub-program
A named group of instructions that you define once and can use (call) as many times as you want. Some coding apps call it a procedure, a function or "My Blocks".
call
Use a sub-program by writing its name, like SQUARE(4).
input (parameter)
A value you give a sub-program when you call it, like the 4 in SQUARE(4).
efficient code
Code that does the job with fewer lines and fewer steps, and is easy to read and change.