MΓ³dulo 01 Β· Ruby Basics β LecciΓ³n 1 de 6 Β· ~11 min
Variables & Everything is an Object
No let, no var, no const
Swift makes you pick: let for a constant, var for something that changes. Python drops the keyword but keeps the assignment. Ruby goes even further β there's no keyword at all. You just write a name, =, and a value:
walker_name = "Priya" walk_price_cents = 2400
That's a local variable, full stop. Ruby has no let/const distinction baked into the syntax β every plain assignment can be reassigned later. (You'll meet freeze in a later module for the rare case you truly want to lock a value down.)