ruby exclamation mark code example
Example: what is exclamation mark in ruby
foo = "A STRING" # a string called foo
foo.downcase! # modifies foo itself
puts foo # prints modified foo
foo = "A STRING" # a string called foo
foo.downcase! # modifies foo itself
puts foo # prints modified foo