Skip to main content

Notice: Workspaces are undergoing maintenance and are temporarily unavailable.

🚀 In our NEW AI Bootcamp you'll build a working app in 28 days, no experience required. Free to all subscription levels.

✨ Earn college credits in Cybersecurity, JS, HTML, CSS and Python

Join the Treehouse affiliate program and earn 25% recurring commission! 🤑

  • Treehouse Logo
    • For Individuals
    • For Businesses
    • For Schools
    • For Libraries
    • For Military
    • All Courses
    • Tracks
    • AI Bootcamp
    • College Credit
    • Techdegree Bootcamps
    • Front End Development
    • Full Stack JavaScript
    • Code Adventures
    • Discord
    • Forum
    • Success Stories
    • Treehouse Links
    • 100 Days of Code
    • Explore
    • Career Toolbox
    • Free Treehouse Near Me
    • Affiliates
    • Blog
    • Support
    • About
    • Learn
    • Beginner's Guide to Coding
    • Data Analysis with SQL & Python
    • Front-End Web Development
    • Python Programming Basics
    • Techdegree Bootcamp Overview
    • UX Design Fundamentals
    • AI Tools for Beginners
  • For Individuals For Businesses For Schools For Libraries For Military
  • All Courses Tracks AI Bootcamp College Credit
  • Techdegree Bootcamps Front End Web Development Full Stack JavaScript
  • Code Adventures Discord Forum Success Stories Treehouse Links 100 Days of Code
  • Explore Career Toolbox Free Treehouse Near Me Affiliates Blog Support About
    Learn Beginner's Guide to Coding Data Analysis with SQL & Python Front-End Web Development Python Programming Basics Techdegree Bootcamp Overview UX Design Fundamentals AI Tools for Beginners
  • Sign In
  • Free Trial
Instagram Twitter Facebook YouTube LinkedIn
Loading banner... Start your free trial at Treehouse
    • Newest
      • Newest
      • Active
      • Unanswered
      • Featured
    • All Topics
      • All Topics
      • • General Discussion
      • • AI
      • • APIs
      • • Coding for Kids
      • • College Credit
      • • Computer Science
      • • CSS
      • • Data Analysis
      • • Databases
      • • Design
      • • Development Tools
      • • Digital Literacy
      • • Game Development
      • • Go Language
      • • HTML
      • • Java
      • • JavaScript
      • • Learning Resources
      • • Machine Learning
      • • No-Code
      • • PHP
      • • Professional Growth
      • • Python
      • • Quality Assurance
      • • React
      • • Ruby
      • • Security
      • • Swift
      • • Vibe Coding
  • K .
    K .
    2,357 Points

    Why does it matter what order we put the 'if' and 'elsif' statements?

    Posted August 6, 2019 11:34pm by K .
    K .
    2,357 Points
    • Ruby
    • Ruby Basics
    • Conditionals
    • A Better "check_speed" Method

    1 Answer

  • Chris Drummond
    Chris Drummond
    1,469 Points

    This version of the check_speed only prints "speed OK" if the speed is exactly 55 miles per hour. It would be better to

    Posted July 14, 2019 3:02am by Chris Drummond
    Chris Drummond
    1,469 Points
    • Ruby
    • Ruby Basics
    • Conditionals
    • A Better "check_speed" Method

    1 Answer

  • Chris Drummond
    Chris Drummond
    1,469 Points

    This version of the check_speed only prints "speed OK" if the speed is exactly 55 miles per hour. It would be better to

    Posted July 13, 2019 6:50pm by Chris Drummond
    Chris Drummond
    1,469 Points
    • Ruby
    • Ruby Basics
    • Conditionals
    • A Better "check_speed" Method

    1 Answer

  • Erin Claudio
    PLUS
    Erin Claudio
    Courses Plus Student 8,403 Points

    I think I found a bug

    Posted April 15, 2019 9:07pm by Erin Claudio
    Erin Claudio
    Courses Plus Student 8,403 Points
    • Ruby
    • Ruby Basics
    • Conditionals
    • A Better "check_speed" Method

    2 Answers

  • pavilion
    pavilion
    7,454 Points

    Bummer: We called check_speed with an argument greater than 60, but it didn't print "too fast".

    Posted February 20, 2019 4:17am by pavilion
    pavilion
    7,454 Points
    • Ruby
    • Ruby Basics
    • Conditionals
    • A Better "check_speed" Method

    1 Answer

  • Gregory James
    Gregory James
    6,537 Points

    Speed check

    Posted January 12, 2019 5:41pm by Gregory James
    Gregory James
    6,537 Points
    • Ruby
    • Ruby Basics
    • Conditionals
    • A Better "check_speed" Method

    2 Answers

  • arzu yildiz
    PLUS
    arzu yildiz
    Courses Plus Student 605 Points

    aszx

    Posted December 6, 2018 4:44am by arzu yildiz
    arzu yildiz
    Courses Plus Student 605 Points
    • Ruby
    • Ruby Basics
    • Conditionals
    • A Better "check_speed" Method

    0 Answers

  • Blake Baggett
    PLUS
    Blake Baggett
    Courses Plus Student 648 Points

    Stuck on Check Speed Method

    Posted May 25, 2018 12:52am by Blake Baggett
    Blake Baggett
    Courses Plus Student 648 Points
    • Ruby
    • Ruby Basics
    • Conditionals
    • A Better "check_speed" Method

    2 Answers

  • David Wilson
    David Wilson
    7,073 Points

    A Better "check_speed" Method

    Posted May 19, 2018 2:17am by David Wilson
    David Wilson
    7,073 Points
    • Ruby
    • Ruby Basics
    • Conditionals
    • A Better "check_speed" Method

    4 Answers

  • Christopher Kemp
    Christopher Kemp
    3,446 Points

    Check_speed

    Posted May 10, 2018 5:26pm by Christopher Kemp
    Christopher Kemp
    3,446 Points
    • Ruby
    • Ruby Basics
    • Conditionals
    • A Better "check_speed" Method

    1 Answer

  • silva celso
    silva celso
    13,513 Points

    do you the solution to this task\challenge?

    Posted January 25, 2018 4:35am by silva celso
    silva celso
    13,513 Points
    • Ruby
    • Ruby Basics
    • Conditionals
    • A Better "check_speed" Method

    1 Answer

  • Basto Biih
    Basto Biih
    5,334 Points

    If Conditional Statement

    Posted December 15, 2017 11:24pm by Basto Biih
    Basto Biih
    5,334 Points
    • Ruby
    • Ruby Basics
    • Conditionals
    • A Better "check_speed" Method

    1 Answer

  • Corina Feraru
    Corina Feraru
    6,257 Points

    Cannot pass the test even thou the exercise passes in IRB

    Posted November 13, 2017 1:35pm by Corina Feraru
    Corina Feraru
    6,257 Points
    • Ruby
    • Ruby Basics
    • Conditionals
    • A Better "check_speed" Method

    2 Answers

  • Mika Laakso
    Mika Laakso
    4,222 Points

    The code is not working

    Posted November 8, 2017 8:53pm by Mika Laakso
    Mika Laakso
    4,222 Points
    • Ruby
    • Ruby Basics
    • Conditionals
    • A Better "check_speed" Method

    1 Answer

  • Ediju Rodrigues
    Ediju Rodrigues
    5,214 Points

    This version of the check_speed only prints "speed OK" if the speed is exactly 55 miles per hour.

    Posted October 20, 2017 8:18am by Ediju Rodrigues
    Ediju Rodrigues
    5,214 Points
    • Ruby
    • Ruby Basics
    • Conditionals
    • A Better "check_speed" Method

    3 Answers

  • neoty888
    neoty888
    23,973 Points

    Note sure what I'm doing wrong for this challenge. Can't get the 'check_speed' to pass for a speed less than 45.

    Posted October 17, 2017 11:32pm by neoty888
    neoty888
    23,973 Points
    • Ruby
    • Ruby Basics
    • Conditionals
    • A Better "check_speed" Method

    2 Answers

Posting to the forum is only allowed for members with active accounts.
Please sign in or sign up to post.

Techdegree

  • Front End Web Development
  • Full Stack JavaScript
SEE ALL

Tracks

  • Learn to Code for Beginners
  • Beginning Python
  • Beginning SQL
  • Beginning Java
SEE ALL

Courses

  • JavaScript Basics
  • Intro to HTML & CSS
  • Python Basics
  • CSS Layout
SEE ALL

About Us

  • About
  • Blog
  • Community
  • Stories
  • Contact
  • Gift Card

Explore

  • Plans
  • Affiliates
  • Perks
  • Shop
  • Free Treehouse Near Me
  • Treehouse for Libraries
  • Treehouse for Businesses

Treehouse is an online technology education platform founded in 2011. Treehouse offers more than 700 self-paced, video-based courses in web development, programming, data analysis, design, and AI, plus two project-based bootcamp programs in Front End Web Development and Full Stack JavaScript. Individual Treehouse plans start at $25 per month and include a 7-day free trial. Treehouse serves individual learners, businesses, schools, and public libraries. Cardholders at participating U.S. public libraries can use Treehouse for free. Select Treehouse courses, offered with University Pathways International, are recommended for college credit by ACE and NCCRS. Treehouse learners earn digital certificates for completed Tracks.

Terms & Conditions · Privacy · © 2026 Treehouse Island, Inc.
  • Twitter
  • YouTube
  • Facebook
  • LinkedIn
  • Instagram
  • Discord