Skip to main content

🚀 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
  • Maciek Radomski
    seal-mask
    .a{fill-rule:evenodd;}techdegree
    Maciek Radomski
    Python Development Techdegree Student 12,293 Points

    Is this solution fine ?

    Posted September 23, 2025 8:45am by Maciek Radomski
    .a{fill-rule:evenodd;}techdegree
    Maciek Radomski
    Python Development Techdegree Student 12,293 Points
    • JavaScript
    • JavaScript Functions
    • Arrow Functions
    • Testing for Number Arguments

    1 Answer

  • Kirok James
    seal-mask
    .a{fill-rule:evenodd;}techdegree
    Kirok James
    Full Stack JavaScript Techdegree Student 876 Points

    What if both values are not a number

    Posted January 3, 2023 1:29pm by Kirok James
    .a{fill-rule:evenodd;}techdegree
    Kirok James
    Full Stack JavaScript Techdegree Student 876 Points
    • JavaScript
    • JavaScript Functions
    • Arrow Functions
    • Testing for Number Arguments

    1 Answer

  • Peter Huang
    Peter Huang
    5,427 Points

    In this video when they use " if () " How come there is no " else " and still works?

    Posted November 21, 2022 11:56pm by Peter Huang
    Peter Huang
    5,427 Points
    • JavaScript
    • JavaScript Functions
    • Arrow Functions
    • Testing for Number Arguments

    1 Answer

  • nasser mohammed
    nasser mohammed
    13,160 Points

    Testing for Number Arguments Pass a string argument

    Posted September 9, 2022 8:09pm by nasser mohammed
    nasser mohammed
    13,160 Points
    • JavaScript
    • JavaScript Functions
    • Arrow Functions
    • Testing for Number Arguments

    1 Answer

  • Zydrunas Likas
    Zydrunas Likas
    3,952 Points

    My solution for Function Challenge Solution any advice welcome

    Posted July 14, 2022 11:38pm by Zydrunas Likas
    Zydrunas Likas
    3,952 Points
    • JavaScript
    • JavaScript Functions
    • Arrow Functions
    • Testing for Number Arguments

    1 Answer

  • Hina K.
    Hina K.
    4,807 Points

    My solution (different from the tutorial). Does this work? I used the '&&' operator.

    Posted March 22, 2022 11:21pm by Hina K.
    Hina K.
    4,807 Points
    • JavaScript
    • JavaScript Functions
    • Arrow Functions
    • Testing for Number Arguments

    1 Answer

  • karan Badhwar
    seal-mask
    .a{fill-rule:evenodd;}techdegree seal-36
    karan Badhwar
    Web Development Techdegree Graduate 18,136 Points

    Error Object

    Posted December 2, 2021 9:38pm by karan Badhwar
    .a{fill-rule:evenodd;}techdegree seal-36
    karan Badhwar
    Web Development Techdegree Graduate 18,136 Points
    • JavaScript
    • JavaScript Functions
    • Arrow Functions
    • Testing for Number Arguments

    2 Answers

  • Yoan Halevy
    seal-mask
    .a{fill-rule:evenodd;}techdegree
    Yoan Halevy
    Full Stack JavaScript Techdegree Student 2,964 Points

    The code I have gives me back a value of "undefined". Can someone tell me why?

    Posted October 26, 2021 1:47am by Yoan Halevy
    .a{fill-rule:evenodd;}techdegree
    Yoan Halevy
    Full Stack JavaScript Techdegree Student 2,964 Points
    • JavaScript
    • JavaScript Functions
    • Arrow Functions
    • Testing for Number Arguments

    1 Answer

  • Kade Rathbun
    Kade Rathbun
    6,586 Points

    Would the "&&" operator also work in this situation for the if statement?

    Posted June 7, 2021 10:33pm by Kade Rathbun
    Kade Rathbun
    6,586 Points
    • JavaScript
    • JavaScript Functions
    • Arrow Functions
    • Testing for Number Arguments

    1 Answer

  • ja5on
    ja5on
    10,339 Points

    how to have the same code but use prompt to pass numbers through the function?

    Posted May 31, 2021 2:49pm by ja5on
    ja5on
    10,339 Points
    • JavaScript
    • JavaScript Functions
    • Arrow Functions
    • Testing for Number Arguments

    1 Answer

  • Esther AlQaisi
    Esther AlQaisi
    2,311 Points

    "Else" keyword not necessary ??

    Posted April 29, 2021 6:38pm by Esther AlQaisi
    Esther AlQaisi
    2,311 Points
    • JavaScript
    • JavaScript Functions
    • Arrow Functions
    • Testing for Number Arguments

    1 Answer

  • Sara Masek
    seal-mask
    .a{fill-rule:evenodd;}techdegree
    Sara Masek
    Front End Web Development Techdegree Student 11,513 Points

    Passing a string-type number results in a negative number for function outcome

    Posted April 9, 2021 6:41pm by Sara Masek
    .a{fill-rule:evenodd;}techdegree
    Sara Masek
    Front End Web Development Techdegree Student 11,513 Points
    • JavaScript
    • JavaScript Functions
    • Arrow Functions
    • Testing for Number Arguments

    1 Answer

  • Zach Hope
    Zach Hope
    1,862 Points

    Not recieving an error regardless of what arguments get passed

    Posted January 29, 2021 2:57am by Zach Hope
    Zach Hope
    1,862 Points
    • JavaScript
    • JavaScript Functions
    • Arrow Functions
    • Testing for Number Arguments

    1 Answer

  • Alexis Scriven
    Alexis Scriven
    2,246 Points

    I am getting an error that isNAN is not defined, but my code is the exact same as the video.

    Posted December 11, 2020 12:11pm by Alexis Scriven
    Alexis Scriven
    2,246 Points
    • JavaScript
    • JavaScript Functions
    • Arrow Functions
    • Testing for Number Arguments

    2 Answers

  • Palash Tiwari
    Palash Tiwari
    8,050 Points

    can you please tell me why the curly braces { not closed after ' if 'statement .

    Posted November 21, 2020 9:08pm by Palash Tiwari
    Palash Tiwari
    8,050 Points
    • JavaScript
    • JavaScript Functions
    • Arrow Functions
    • Testing for Number Arguments

    2 Answers

  • Vikram Pal
    Vikram Pal
    2,832 Points

    Can someone explain the math being done in this problem to me? Is it picking a random number between lower and upper?

    Posted July 28, 2020 5:56am by Vikram Pal
    Vikram Pal
    2,832 Points
    • JavaScript
    • JavaScript Functions
    • Arrow Functions
    • Testing for Number Arguments

    1 Answer

  • Jamie Davies
    Jamie Davies
    2,787 Points

    IS this an OK solution?

    Posted July 8, 2020 3:56pm by Jamie Davies
    Jamie Davies
    2,787 Points
    • JavaScript
    • JavaScript Functions
    • Arrow Functions
    • Testing for Number Arguments

    1 Answer

  • Mytech T
    seal-mask
    .a{fill-rule:evenodd;}techdegree
    Mytech T
    Full Stack JavaScript Techdegree Student 1,427 Points

    Is this solution acceptable?

    Posted July 2, 2020 1:08am by Mytech T
    .a{fill-rule:evenodd;}techdegree
    Mytech T
    Full Stack JavaScript Techdegree Student 1,427 Points
    • JavaScript
    • JavaScript Functions
    • Arrow Functions
    • Testing for Number Arguments

    4 Answers

  • Cody Norman
    seal-mask
    .a{fill-rule:evenodd;}techdegree
    Cody Norman
    Full Stack JavaScript Techdegree Student 3,421 Points

    Number arguments not working quite right

    Posted June 4, 2020 6:12am by Cody Norman
    .a{fill-rule:evenodd;}techdegree
    Cody Norman
    Full Stack JavaScript Techdegree Student 3,421 Points
    • JavaScript
    • JavaScript Functions
    • Arrow Functions
    • Testing for Number Arguments

    1 Answer

  • Jasper Kop
    Jasper Kop
    10,423 Points

    when I program it my self I don't get the regular error.I do see the text Both arguments must be numbers.

    Posted May 22, 2020 1:09pm by Jasper Kop
    Jasper Kop
    10,423 Points
    • JavaScript
    • JavaScript Functions
    • Arrow Functions
    • Testing for Number Arguments

    2 Answers

  • Joseph Michelini
    seal-mask
    .a{fill-rule:evenodd;}techdegree seal-36
    Joseph Michelini
    Python Development Techdegree Graduate 18,692 Points

    Will I encounter a problem if a function parameter shares a name with a global variable?

    Posted May 17, 2020 7:16pm by Joseph Michelini
    .a{fill-rule:evenodd;}techdegree seal-36
    Joseph Michelini
    Python Development Techdegree Graduate 18,692 Points
    • JavaScript
    • JavaScript Functions
    • Arrow Functions
    • Testing for Number Arguments

    1 Answer

  • Silvia Ramos
    seal-mask
    .a{fill-rule:evenodd;}techdegree seal-36
    Silvia Ramos
    Front End Web Development Techdegree Graduate 18,318 Points

    Another solution

    Posted May 7, 2020 12:32pm by Silvia Ramos
    .a{fill-rule:evenodd;}techdegree seal-36
    Silvia Ramos
    Front End Web Development Techdegree Graduate 18,318 Points
    • JavaScript
    • JavaScript Functions
    • Arrow Functions
    • Testing for Number Arguments

    1 Answer

  • khaled elfaham
    khaled elfaham
    3,779 Points

    how can I can collect two numbers from the user that will be used in a function?

    Posted April 29, 2020 2:56am by khaled elfaham
    khaled elfaham
    3,779 Points
    • JavaScript
    • JavaScript Functions
    • Arrow Functions
    • Testing for Number Arguments

    1 Answer

  • michael appenteng
    seal-mask
    .a{fill-rule:evenodd;}techdegree
    michael appenteng
    Full Stack JavaScript Techdegree Student 2,495 Points

    Testing for Number Arguments

    Posted March 8, 2020 10:50pm by michael appenteng
    .a{fill-rule:evenodd;}techdegree
    michael appenteng
    Full Stack JavaScript Techdegree Student 2,495 Points
    • JavaScript
    • JavaScript Functions
    • Arrow Functions
    • Testing for Number Arguments

    1 Answer

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