Examveda

What is the correct syntax to declare and initialize a variable in Ruby?

A. var_name = value

B. var var_name = value

C. variable var_name = value

D. variable_name = value

Answer: Option D


Join The Discussion

Related Questions on Data Types and Variables in Ruby