🤑 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

  • 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
  • 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,135 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,135 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,338 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,338 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.

    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.