In case you get stuck anywhere, don't be afraid to ask the coaches! They are here to help and will gladly explain everything to you!
Take notes during the exercises. Even if you never look at them again, they will help you memorise things!
For these exercises, we're only going to use IRB.
Remember: To run IRB, open a command line window (Powershell or Terminal). Then enter the command irb
and press Enter.
To exit a running IRB, enter the command exit
.
You have two strings: "Ruby is"
and "great!"
. Combine them to one string which says: "Ruby is great!"
. Figure out how to concatenate strings using the official documentation or using Google.
"42"
and the number 42
are not the same.
.class
method. What does it say for the string "42"
and the number 42
?42
into the string "42"
. How can you make a number out of a string?"what is happening?"
into "?gnineppah si tahW"
?