Check out example codes for "what is exclamation mark in ruby". It will help you in understanding the concepts better.

Code Example 1

foo = "A STRING"  # a string called foo
foo.downcase!     # modifies foo itself
puts foo          # prints modified foo

Code Example 2

a string

Learn ReactJs, React Native from akashmittal.com