Learn
The Zen of Ruby
Conditional Assignment

Perfect! Now let’s review conditional assignment. We’ll take a break from strict editing mode and let you do a bit more writing.

Instructions

1.

Create a variable called favorite_animal and conditionally assign it to a string containing the name of your favorite animal.

Folder Icon

Take this course for free

Already have an account?