15. Strings And String Methods


#1


Could someone please explain why it only gives the last result?
Replace this line with your code.


#2

@constantg,
-1
The Ruby interpreter will only display
the last-non-Diplayed action...
-2
You must be aware
that assigning the variables
like

variable_name = name = "nivlac".upcase

you have assigned the =uppercased= "nivlac"
to 2 variables
variable_name AND 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......

-3
You could have used

puts variable_name
puts name

#3

Thank you so much Dear costantg for your kindly helping


#4

yess!!!!!!!!!! ,,,,,,,,,,,,,