TIPS #1: Ruby variable declaration chaining | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
+ 5

TIPS #1: Ruby variable declaration chaining

Ruby is expression oriented it can do this: x = y = z = a = b = c = 5 All variables(x, y, z, a, b, c) has the value: 5 Try it out ;)

18th Jun 2017, 8:29 AM
Complex
Complex - avatar
2 Answers
+ 5
Thanks
20th Jun 2017, 9:29 AM
Iwan
Iwan - avatar
+ 2
@Iwan :D
20th Jun 2017, 11:35 AM
Complex
Complex - avatar