To get the length of a string, we can use the built-in length method in Ruby. The length method returns the number of characters in a string in integer format.
確定! 回上一頁