Which of the following is the correct way to declare a variable in Ruby with a default value?
A. var_name = value
B. var_name := value
C. var_name << value
D. var_name => value
Answer: Option A
Related Questions on Data Types and Variables in Ruby
A. var_name = value
B. var_name := value
C. var_name << value
D. var_name => value
Answer: Option A
Join The Discussion