Let's say we don't know anything about it when we start looking at this method. Then our field test may deduce its effect.
" Bonnie ". Reverse
What is the result of the operation?
"Einnob"
And then what do we know about this method? Yes, this is a reversal method. At this time is not think and JS very much like, haha, not very much like, is the same, get the result is the same, now is not a better understanding of the other two, let's go,go, go.
" Bonnie ". upcase
Result
" BONNIE "
Yes, this is the way to capitalize the string, and the other is not a good guess. We still have to try.
" Bonnie ". Downcase
Result
" Bonnie "
is not quite easy. So let's try a couple of them together.
" Bonnie ". Reverse.upcase
Result
" Einnob "
Is there any judgment on the outcome?
Let us continue our efforts to make a breakthrough in the practical use of complex usage. By the end of my study, I'll have a project. wow haha ~ ~ ~. Work together.
Ruby-reverse ', upcase ' & '. Downcase '