Strings
Goals
Step 1
IRB'a string in single quotes' "a string in double quotes"
Step 2
IRB'Hello, ' + 'Jane' 'apples' * 3
Step 3
IRBname = 'Jane' "Hello #{name}"IRB"Two plus two is #{2 + 2}"
Step 4
IRB'I have many characters'.length 'forwards'.reverse 'jane smith'.upcase 'a plain old sentence'.delete('aeiou')IRB'some string'.methods
Explanation
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
Back to Datatypes