Welcome to the Treehouse Community

The Treehouse Community is a meeting place for developers, designers, and programmers of all backgrounds and skill levels to get support. Collaborate here on code errors or bugs that you need feedback on, or asking for an extra set of eyes on your latest project. Join thousands of Treehouse students and alumni in the community today. (Note: Only Treehouse students can comment or ask questions, but non-students are welcome to browse our conversations.)

Looking to learn something new?

Treehouse offers a seven day free trial for new students. Get access to thousands of hours of content and a supportive community. Start your free trial today.

Ruby Ruby Booleans Ruby Booleans Boolean Review

typo display_car_speed

Shouldn't "display_car_speed" read "car_speed" in the "ruby-booleans" Stage 1, Challenge Take 1 of 2?

car_speed = 50
speed_limit = 45
if car_speed > speed_limit

1 Answer

William Li
William Li
Courses Plus Student 26,865 Points

Assume that the flash_car_speed and display_car_speed methods have been defined elsewhere.

Is this you're referring to? No it's not a typo, car_speed is a variable, not method. display_car_speed is the method you're going to use in part 2 of the challenge. But I'd suggest them to move the mention of display_car_speed to part 2 of the challenge as it didn't get used in part 1 at all.