Strings
Goals
Step 1
Type this in irb:'a string in single quotes' "a string in double quotes"
Step 2
Type this in irb:'Hello, ' + 'Jane' 'apples' * 3
Step 3
Type this in irb:name = 'Jane' "Hello #{name}"Type this in irb:"Two plus two is #{2 + 2}"
Step 4
Type this in irb:'I have many characters'.length 'forwards'.reverse 'jane smith'.upcase 'a plain old sentence'.delete('aeiou')Type this in irb:'some string'.methods
Explicación
length how long is this string (characters) reverse return same string, reversed upcase return same string, IN UPPER CASE delete([another string]) delete all characters in the second string from the first methods get the names of all methods you can perform on string
Further Reading
Ruby's documentation for String
Next Step:
Go on to Input And Output