Submitted by Bmurts_51d055039c4e9dbac300772b_deleted
about 10 years
Control flow in ruby - unless explained
Hi im new to coding so im aware this is a nooby question, but could someone explain it? The way its worded on the guide is a bit awkward. Thanks
Answer 53e246cf80ff33bf9a002c1d
0 votes
I understand the concept of it, just not the actual code written in the editor ; hungry = false
puts “I’m writing Ruby programs!”
puts “Time to eat!” end
Submitted by Bmurts_51d055039c4e9dbac300772b_deleted
about 10 years
1 comments
Submitted by philip32686
almost 10 years
the two blank spaces between each line of code you wrote out that ended up as “___________” Those areas you need to fill with code in order to make this code work.
Try using an unless statement in the first empty space and an else/end statement where applicable afterwards.
Popular free courses
- Free course
Learn SQL
In this SQL course, you'll learn how to manage large datasets and analyze real data using the standard data management language.Beginner Friendly4 Lessons - Free course
Learn JavaScript
Learn how to use JavaScript — a powerful and flexible programming language for adding website interactivity.Beginner Friendly11 Lessons - Free course
Learn HTML
Start at the beginning by learning HTML basics — an important foundation for building and editing web pages.Beginner Friendly6 Lessons