Variables and Data Types
Variables in Ruby are dynamically typed — you don’t need to declare the type explicitly. Ruby will infer it automatically.
Examples:
name = "Harshal"
age = 25
is_developer = trueCommon Data Types:
String- Text (e.g.,"Hello")Integer- Whole numbers (e.g.,10)Float- Decimal numbers (e.g.,3.14)Boolean-trueorfalseNil- Represents 'nothing'
