Skip to content

Latest commit

 

History

History
9 lines (7 loc) · 168 Bytes

Find_length_of_string_in_ruby.md

File metadata and controls

9 lines (7 loc) · 168 Bytes

Find length of string in Ruby

Use .length to find length of string.

"hi".length            # 2
"hello".length         # 5
"Hello World!".length  # 12