Is There Homework in This Class?
We'll end most lessons with a few suggested activities and questions to help you sort through what you've seen. These aren't designed primarily to test your skills but to help you learn, which is an altogether different goal. Do your best before consulting the answers; especially in later chapters, there will be times when an answer you have to struggle for will turn out to be different from, yet just as good as, the one we provide.
For today, you'll just be typing some things into irb and drawing what conclusions you can. Start irb in a terminal window. Type the following expressions on separate lines, notice what values and errors get reported, and see whether you can answer the questions that follow.
99 < ...
Get Sams Teach Yourself Ruby in 21 Days now with the O’Reilly learning platform.
O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.