🤑 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
  • Langelihle Chimanya
    Langelihle Chimanya
    7,176 Points

    omplete the following code so that the results of this math operation are rounded down to the nearest integer. For examp

    Posted April 2, 2019 2:01pm by Langelihle Chimanya
    Langelihle Chimanya
    7,176 Points
    • JavaScript
    • JavaScript Basics (Retired)
    • Working With Numbers
    • Review Working with Numbers

    1 Answer

  • Clayton Bowland
    Clayton Bowland
    2,874 Points

    math. _(5 / 2)

    Posted March 27, 2019 4:00am by Clayton Bowland
    Clayton Bowland
    2,874 Points
    • JavaScript
    • JavaScript Basics (Retired)
    • Working With Numbers
    • Review Working with Numbers

    2 Answers

  • sanjita sahu
    seal-mask
    .a{fill-rule:evenodd;}techdegree
    sanjita sahu
    Full Stack JavaScript Techdegree Student 638 Points

    var myNumber = prompt('write your number'); var top = parseInt(myNumber); var randomNumber = Math.floor(Math.random()

    Posted March 18, 2019 5:17pm by sanjita sahu
    .a{fill-rule:evenodd;}techdegree
    sanjita sahu
    Full Stack JavaScript Techdegree Student 638 Points
    • JavaScript
    • JavaScript Basics (Retired)
    • Working With Numbers
    • Review Working with Numbers

    1 Answer

  • Mickey Odunikan
    Mickey Odunikan
    7,392 Points

    This script never produces a 0 how is it wrong? Math.ceil(Math.random() *6)

    Posted November 15, 2018 8:02pm by Mickey Odunikan
    Mickey Odunikan
    7,392 Points
    • JavaScript
    • JavaScript Basics (Retired)
    • Working With Numbers
    • Review Working with Numbers

    2 Answers

  • niels Lostaunau
    niels Lostaunau
    638 Points

    what would be the apropriate answear and why?

    Posted February 20, 2018 4:30am by niels Lostaunau
    niels Lostaunau
    638 Points
    • JavaScript
    • JavaScript Basics (Retired)
    • Working With Numbers
    • Review Working with Numbers

    1 Answer

  • Manveer Sandhu
    PLUS
    Manveer Sandhu
    Courses Plus Student 1,389 Points

    complete the code

    Posted August 18, 2017 12:15am by Manveer Sandhu
    Manveer Sandhu
    Courses Plus Student 1,389 Points
    • JavaScript
    • JavaScript Basics (Retired)
    • Working With Numbers
    • Review Working with Numbers

    1 Answer

  • Alex Uvere
    Alex Uvere
    2,235 Points

    I need help with this.

    Posted August 5, 2017 8:07am by Alex Uvere
    Alex Uvere
    2,235 Points
    • JavaScript
    • JavaScript Basics (Retired)
    • Working With Numbers
    • Review Working with Numbers

    2 Answers

  • Maheshkumar selvaraj
    Maheshkumar selvaraj
    587 Points

    Does it suppose to give syntax error ? I thought we shouldn't write like this: parseFloat('0.5 abc').

    Posted July 7, 2017 10:56am by Maheshkumar selvaraj
    Maheshkumar selvaraj
    587 Points
    • JavaScript
    • JavaScript Basics (Retired)
    • Working With Numbers
    • Review Working with Numbers

    1 Answer

  • Bryan Flanigan
    Bryan Flanigan
    2,617 Points

    I have a question on the Random Challenge. I am getting lost with the prompt commands, parseInt, Mathfloor, etc.

    Posted April 11, 2016 6:43am by Bryan Flanigan
    Bryan Flanigan
    2,617 Points
    • JavaScript
    • JavaScript Basics (Retired)
    • Working With Numbers
    • Review Working with Numbers

    4 Answers

  • Rachel Heneault
    PLUS
    Rachel Heneault
    Courses Plus Student 766 Points

    I keep getting this question wrong, is Math.round?

    Posted January 19, 2016 10:29am by Rachel Heneault
    Rachel Heneault
    Courses Plus Student 766 Points
    • JavaScript
    • JavaScript Basics (Retired)
    • Working With Numbers
    • Review Working with Numbers

    5 Answers

  • Philomath Ingeniare
    Philomath Ingeniare
    12,441 Points

    How do you select multiple answers?

    Posted December 29, 2015 10:05pm by Philomath Ingeniare
    Philomath Ingeniare
    12,441 Points
    • JavaScript
    • JavaScript Basics (Retired)
    • Working With Numbers
    • Review Working with Numbers

    2 Answers

  • gayathrieluri
    gayathrieluri
    605 Points

    Complete the following code so that the results of this math operation are rounded down to the nearest integer. For exam

    Posted September 28, 2015 7:21pm by gayathrieluri
    gayathrieluri
    605 Points
    • JavaScript
    • JavaScript Basics (Retired)
    • Working With Numbers
    • Review Working with Numbers

    2 Answers

  • Prakhar Patwa
    Prakhar Patwa
    11,260 Points

    related random number quiz (2nd part). what will appear in the console console.log( parseFloat( '.5 hours' ));

    Posted April 28, 2015 5:33am by Prakhar Patwa
    Prakhar Patwa
    11,260 Points
    • JavaScript
    • JavaScript Basics (Retired)
    • Working With Numbers
    • Review Working with Numbers

    2 Answers

  • davide totaro
    davide totaro
    5,559 Points

    the results of this math operation are rounded down to the nearest integer. For example, .6 will be rounded to 0.

    Posted March 10, 2015 4:00pm by davide totaro
    davide totaro
    5,559 Points
    • JavaScript
    • JavaScript Basics (Retired)
    • Working With Numbers
    • Review Working with Numbers

    3 Answers

  • Dave Patton
    seal-mask
    .a{fill-rule:evenodd;}techdegree
    Dave Patton
    Front End Web Development Techdegree Student 5,209 Points

    Won't parseInt() do the same thing as Math.floor(), but faster since you don't have to call up the Math class?

    Posted February 23, 2015 9:47pm by Dave Patton
    .a{fill-rule:evenodd;}techdegree
    Dave Patton
    Front End Web Development Techdegree Student 5,209 Points
    • JavaScript
    • JavaScript Basics (Retired)
    • Working With Numbers
    • Review Working with Numbers

    3 Answers

  • Monika Spielman
    Monika Spielman
    14,443 Points

    Are there two possible correct answers to the dieRoll question?

    Posted February 23, 2015 6:33pm by Monika Spielman
    Monika Spielman
    14,443 Points
    • JavaScript
    • JavaScript Basics (Retired)
    • Working With Numbers
    • Review Working with Numbers

    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.