Using the length Method of the String Class : length « String « Ruby






Using the length Method of the String Class



puts "This is a test".length

 

Related examples in the same category

1.Get the longest word