πŸ“Š Ruby
Q. 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
πŸ’¬ Discuss
βœ… Correct Answer: (B) Both operators are the same

You must be Logged in to update hint/solution

πŸ’¬ Discussion


πŸ“Š Question Analytics

πŸ‘οΈ
138
Total Visits
πŸ“½οΈ
2 y ago
Published
πŸŽ–οΈ
Mr. Dubey
Publisher
πŸ“ˆ
80%
Success Rate