131.3 Constants and naming conventions
Learn how to define values that do not change, and how to name variables consistently for readable, maintainable code.
What is a constant?
Declaring constants
SET SCREEN_WIDTH TO 800
SET SCREEN_HEIGHT TO 600
SET MAX_HEALTH TO 100SCREEN_WIDTH = 800
SCREEN_HEIGHT = 600
MAX_HEALTH = 100Why use constants?
Naming conventions
Reserved words
Key concepts
Last updated
Was this helpful?