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

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

New No-Code Track! 🚀start learning today!

🌟 Dreaming of a bright future? 🎓 Ask about the Treehouse Scholarship program! 🚀

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

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

  • Treehouse Logo
  • Plans
    Chevron
    • For Individuals
    • For Businesses
    • For Schools
    • For Libraries
    • For Military
  • Library
    Chevron
    • All Courses
    • Tracks
    • College Credit
  • Techdegree
    Chevron
    • Overview
    • Front End Development
    • Full Stack JavaScript
    • Data Analysis
    • UX Design
    • Python
  • Community
    Chevron
    • Code Adventures
    • Discord
    • Forum
    • Success Stories
    • Treehouse Links
    • 100 Days of Code
  • Resources
    Chevron
    • Career Toolbox
    • CodeForward
    • Free Treehouse Near Me
    • Jobs
    • Blog
    • Support
    • About
  • For Individuals For Businesses For Schools For Libraries For Military
  • All Courses Tracks College Credit
  • Overview Front End Web Development Full Stack JavaScript Python Development Data Analysis UX Design
  • Code Adventures Discord Forum Success Stories Treehouse Links 100 Days of Code
  • Career Toolbox CodeForward Free Treehouse Near Me Jobs Blog Support About
  • Sign In
  • Free Trial
Instagram Twitter Facebook YouTube LinkedIn
    • Newest
      • Newest
      • Active
      • Unanswered
      • Featured
    • All Topics
      • All Topics
      • • General Discussion
      • • AI
      • • Android
      • • 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
    • Showing results for:
    • Ruby
    • Ruby Basics
    • Ruby Syntax
    • Method Return Values
    • Close
  • Fraser Henderson
    Fraser Henderson
    56 Points

    video frozen, flushed chrome cashe, restarted program, restarted computer , frozen since yesterday

    Posted on Feb 27, 2024 by Fraser Henderson
    Fraser Henderson
    56 Points
    • Ruby
    • Ruby Basics
    • Ruby Syntax
    • Method Return Values

    0 Answers

  • alexx1000
    alexx1000
    16,187 Points

    Hello there! I'm in the Ruby Basics class doing the methods.rb challenge and I can't seem to get the answer right...

    Posted on Mar 2, 2021 by alexx1000
    alexx1000
    16,187 Points
    • Ruby
    • Ruby Basics
    • Ruby Syntax
    • Method Return Values

    3 Answers

  • M J
    M J
    7,322 Points

    How to make a method return a particular value (Ruby)?

    Posted on Jul 25, 2020 by M J
    M J
    7,322 Points
    • Ruby
    • Ruby Basics
    • Ruby Syntax
    • Method Return Values

    1 Answer

  • M J
    M J
    7,322 Points

    How to make a method return a particular value?

    Posted on Jul 25, 2020 by M J
    M J
    7,322 Points
    • Ruby
    • Ruby Basics
    • Ruby Syntax
    • Method Return Values

    1 Answer

  • Steve Rogers
    Steve Rogers
    3,285 Points

    methods and arguments

    Posted on Oct 31, 2019 by Steve Rogers
    Steve Rogers
    3,285 Points
    • Ruby
    • Ruby Basics
    • Ruby Syntax
    • Method Return Values

    3 Answers

  • Aparna Balasubramanian
    Aparna Balasubramanian
    2,483 Points

    Define a method named three that always returns the number 3. Also define a method named five that always returns the nu

    Posted on Sep 30, 2019 by Aparna Balasubramanian
    Aparna Balasubramanian
    2,483 Points
    • Ruby
    • Ruby Basics
    • Ruby Syntax
    • Method Return Values

    2 Answers

  • Chris Drummond
    Chris Drummond
    1,469 Points

    Unsure about this one

    Posted on Jun 5, 2019 by Chris Drummond
    Chris Drummond
    1,469 Points
    • Ruby
    • Ruby Basics
    • Ruby Syntax
    • Method Return Values

    1 Answer

  • Katie Urie
    Katie Urie
    208 Points

    def three(number) number = 3 end puts ("3") def five(number) number = 5 end puts ("5")

    Posted on Apr 30, 2019 by Katie Urie
    Katie Urie
    208 Points
    • Ruby
    • Ruby Basics
    • Ruby Syntax
    • Method Return Values

    1 Answer

  • Hunter Wierstra
    Hunter Wierstra
    7,454 Points

    I can't figure out Ruby-Method Return Values Challenge

    Posted on Apr 22, 2019 by Hunter Wierstra
    Hunter Wierstra
    7,454 Points
    • Ruby
    • Ruby Basics
    • Ruby Syntax
    • Method Return Values

    1 Answer

  • Derek Hutson
    Derek Hutson
    9,740 Points

    Weird question.. what am I doing wrong?

    Posted on Mar 18, 2019 by Derek Hutson
    Derek Hutson
    9,740 Points
    • Ruby
    • Ruby Basics
    • Ruby Syntax
    • Method Return Values

    1 Answer

  • Christopher Davis
    Christopher Davis
    8,555 Points

    I'm confused by how to always return the number 3 or 5 here.

    Posted on Jan 24, 2019 by Christopher Davis
    Christopher Davis
    8,555 Points
    • Ruby
    • Ruby Basics
    • Ruby Syntax
    • Method Return Values

    1 Answer

  • yahav rosner
    yahav rosner
    4,304 Points

    can you help me?

    Posted on Jul 23, 2018 by yahav rosner
    yahav rosner
    4,304 Points
    • Ruby
    • Ruby Basics
    • Ruby Syntax
    • Method Return Values

    1 Answer

  • Jarvis Jennings
    PLUS
    Jarvis Jennings
    Courses Plus Student 358 Points

    I do not understand why I cannot define the Method with Integers

    Posted on Apr 26, 2018 by Jarvis Jennings
    Jarvis Jennings
    Courses Plus Student 358 Points
    • Ruby
    • Ruby Basics
    • Ruby Syntax
    • Method Return Values

    1 Answer

  • Kristen Kerchhoff
    Kristen Kerchhoff
    1,895 Points

    Methods working locally but in online editor

    Posted on Mar 19, 2018 by Kristen Kerchhoff
    Kristen Kerchhoff
    1,895 Points
    • Ruby
    • Ruby Basics
    • Ruby Syntax
    • Method Return Values

    1 Answer

  • MaryAnn Eleanya
    MaryAnn Eleanya
    8,626 Points

    The program isn't recognizing my arguments.

    Posted on Mar 7, 2018 by MaryAnn Eleanya
    MaryAnn Eleanya
    8,626 Points
    • Ruby
    • Ruby Basics
    • Ruby Syntax
    • Method Return Values

    1 Answer

  • MaryAnn Eleanya
    MaryAnn Eleanya
    8,626 Points

    The method name is not returning any number

    Posted on Mar 6, 2018 by MaryAnn Eleanya
    MaryAnn Eleanya
    8,626 Points
    • Ruby
    • Ruby Basics
    • Ruby Syntax
    • Method Return Values

    2 Answers

  • Fin Muir
    Fin Muir
    1,108 Points

    Help me please

    Posted on Feb 3, 2018 by Fin Muir
    Fin Muir
    1,108 Points
    • Ruby
    • Ruby Basics
    • Ruby Syntax
    • Method Return Values

    1 Answer

  • Ben Santen
    Ben Santen
    1,998 Points

    I cant pass this challenge

    Posted on Dec 6, 2017 by Ben Santen
    Ben Santen
    1,998 Points
    • Ruby
    • Ruby Basics
    • Ruby Syntax
    • Method Return Values

    1 Answer

  • Sherman Edwards
    Sherman Edwards
    937 Points

    Whats wrong

    Posted on Nov 13, 2017 by Sherman Edwards
    Sherman Edwards
    937 Points
    • Ruby
    • Ruby Basics
    • Ruby Syntax
    • Method Return Values

    1 Answer

  • Mika Laakso
    Mika Laakso
    4,222 Points

    wrong number of arguments (given 0, expected 2)

    Posted on Nov 7, 2017 by Mika Laakso
    Mika Laakso
    4,222 Points
    • Ruby
    • Ruby Basics
    • Ruby Syntax
    • Method Return Values

    2 Answers

  • Samuel Joseph
    Samuel Joseph
    5,406 Points

    I am trying to return 5, but it keeps telling me that I am wrong. def five(b) b = 5 return b end

    Posted on Nov 6, 2017 by Samuel Joseph
    Samuel Joseph
    5,406 Points
    • Ruby
    • Ruby Basics
    • Ruby Syntax
    • Method Return Values

    1 Answer

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

    Treehouse

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

See Full Catalogue

Techdegree

  • Front End Web Development
  • Full Stack JavaScript
  • Python Development
  • Data Analysis
  • UX Design

Tracks

  • Learn to Code for Beginners
  • Beginning Python
  • Beginning SQL
  • Beginning Java
  • ...see more

Courses

  • JavaScript Basics
  • Intro to HTML & CSS
  • Python Basics
  • CSS Layout
  • ...see more

Explore

  • Plans
  • Affiliates
  • Perks
  • Free Treehouse Near Me
  • Treehouse for Libraries
  • Treehouse for Businesses
  • Twitter
  • YouTube
  • Facebook
  • LinkedIn
  • Instagram
Terms & Conditions | Privacy

© 2025 Treehouse Island, Inc.