Could someone please explain why it only gives the last result? Replace this line with your code.
The Ruby interpreter will only display
the last-non-Diplayed action...
You must be aware
that assigning the variables
variable_name = name = "nivlac".upcase
you have assigned the =uppercased= "nivlac"
to 2 variables
name both have the string Value "NIVLAC"
Do a google search
== discussions / opinions ==
ruby defining a variable site:stackoverflow.com
ruby assigning a variable site:stackoverflow.com
and read some article's to get a feel......
You could have used
puts variable_name puts name
Thank you so much Dear costantg for your kindly helping