Constants
- Variable names that start with upper-case letter are constants
PI = 3.14
puts PI
PI = 3.145 # Error: already initialized constant PI
Press ← or → to navigate between chapters
Press S or / to search in the book
Press ? to show this help
Press Esc to hide this help
PI = 3.14
puts PI
PI = 3.145 # Error: already initialized constant PI