Mass assignment is a useful feature to assign multiple variables in a single place. We can use it to return the multiple values from the method and this returned value can be assigned by Mass variable assignments.
Don’ts
one = 1 two = 2 three = 3
Do’s
one, two, three = 1, 2, 3
Leave a Reply