Examveda

What is the correct way to declare a variable in Ruby without assigning a value?

A. var_name

B. var_name = nil

C. var_name = ""

D. None of the above

Answer: Option A


Join The Discussion

Related Questions on Data Types and Variables in Ruby