Welcome to the Treehouse Community
Want to collaborate on code errors? Have bugs you need feedback on? Looking for an extra set of eyes on your latest project? Get support with fellow developers, designers, and programmers of all backgrounds and skill levels here with the Treehouse Community! While you're at it, check out some resources Treehouse students have shared here.
Looking to learn something new?
Treehouse offers a seven day free trial for new students. Get access to thousands of hours of content and join thousands of Treehouse students and alumni in the community today.
Start your free trialTJ Takei
13,362 Pointstypo 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
flash_car_speed
end
1 Answer
William Li
Courses Plus Student 26,868 PointsAssume 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.