Examveda

What is the difference between += and = operators?

A. += adds value to existing variable, = assigns value

B. Both operators are the same

C. = adds value, += assigns value

D. += appends to string, = replaces string

Answer: Option B


This Question Belongs to Ruby Programming >> Basic Syntax In Ruby

Join The Discussion

Related Questions on Basic Syntax in Ruby