Test yourself on Variables & Constants 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 Variables & ConstantsGet your flashcardsBuild my revision planTrack my progressDeep Dive: Naming Rules
Good variable names:
- Meaningful:
playerScorenotx - Start with letter or underscore, not number
- No spaces - use camelCase or snake_case
- No reserved words (if, while, for, etc.)
- Case sensitive:
Score≠score
Why use constants?
- Prevents accidental changes
- Makes code more readable
- Easy to update in one place
Make this stick
Signing in gives access to all PrepWise features.