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

New No-Code Track! 🚀 New videos dropping every week—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
    • Community Projects
    • Live Sessions
    • 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
  • Community Projects Live Sessions 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
  • Ranflin Diaz Baez
    seal-mask
    .a{fill-rule:evenodd;}techdegree
    Ranflin Diaz Baez
    Full Stack JavaScript Techdegree Student 1,357 Points

    Important: In each task of this code challenge, the code you write should be added to the code from the previous task.

    Posted March 26, 2022 1:13am by Ranflin Diaz Baez
    .a{fill-rule:evenodd;}techdegree
    Ranflin Diaz Baez
    Full Stack JavaScript Techdegree Student 1,357 Points
    • JavaScript
    • JavaScript Numbers
    • Working with Numbers
    • Numbers and Strings

    1 Answer

  • Xun Huang
    seal-mask
    .a{fill-rule:evenodd;}techdegree seal-36
    Xun Huang
    Web Development Techdegree Graduate 18,515 Points

    Can I also use unary"+" in this challenge?

    Posted January 21, 2022 10:44pm by Xun Huang
    .a{fill-rule:evenodd;}techdegree seal-36
    Xun Huang
    Web Development Techdegree Graduate 18,515 Points
    • JavaScript
    • JavaScript Numbers
    • Working with Numbers
    • Numbers and Strings

    1 Answer

  • Antoine Evanson
    Antoine Evanson
    5,677 Points

    Greetings community, I am unable to access JavaScript from my phone. Is their another way to complete the assignment?

    Posted November 30, 2021 1:58am by Antoine Evanson
    Antoine Evanson
    5,677 Points
    • JavaScript
    • JavaScript Numbers
    • Working with Numbers
    • Numbers and Strings

    1 Answer

  • Mamadou Sam
    Mamadou Sam
    5,717 Points

    how to change string into whole number

    Posted November 28, 2021 5:29pm by Mamadou Sam
    Mamadou Sam
    5,717 Points
    • JavaScript
    • JavaScript Numbers
    • Working with Numbers
    • Numbers and Strings

    1 Answer

  • Gavin Lefleur
    seal-mask
    .a{fill-rule:evenodd;}techdegree
    Gavin Lefleur
    Full Stack JavaScript Techdegree Student 742 Points

    Can anyone help? Imagine you have 10 images on a web page. Each image is 190 pixels wide. Using the two variables

    Posted August 15, 2021 6:43pm by Gavin Lefleur
    .a{fill-rule:evenodd;}techdegree
    Gavin Lefleur
    Full Stack JavaScript Techdegree Student 742 Points
    • JavaScript
    • JavaScript Numbers
    • Working with Numbers
    • Numbers and Strings

    3 Answers

  • Alonzo Delk
    Alonzo Delk
    6,991 Points

    Do I multiply by the totalWidth? Or do I add another variable with the purseInt stating the amount?

    Posted April 1, 2021 12:01am by Alonzo Delk
    Alonzo Delk
    6,991 Points
    • JavaScript
    • JavaScript Numbers
    • Working with Numbers
    • Numbers and Strings

    1 Answer

  • james presley
    james presley
    6,154 Points

    please help not really understanding how to code this.

    Posted March 17, 2021 9:29pm by james presley
    james presley
    6,154 Points
    • JavaScript
    • JavaScript Numbers
    • Working with Numbers
    • Numbers and Strings

    1 Answer

  • Hannah Sohn
    Hannah Sohn
    2,785 Points

    Why is my answer not working?

    Posted October 20, 2020 4:38pm by Hannah Sohn
    Hannah Sohn
    2,785 Points
    • JavaScript
    • JavaScript Numbers
    • Working with Numbers
    • Numbers and Strings

    2 Answers

  • Kevin Leong
    Kevin Leong
    1,664 Points

    Javascript Numbers Challenge Task 1 of 1

    Posted September 25, 2020 4:51am by Kevin Leong
    Kevin Leong
    1,664 Points
    • JavaScript
    • JavaScript Numbers
    • Working with Numbers
    • Numbers and Strings

    1 Answer

  • Kevin Leong
    Kevin Leong
    1,664 Points

    JavaScript numbers challenge task 1

    Posted September 24, 2020 4:18am by Kevin Leong
    Kevin Leong
    1,664 Points
    • JavaScript
    • JavaScript Numbers
    • Working with Numbers
    • Numbers and Strings

    1 Answer

  • terd47
    terd47
    4,436 Points

    I can' seem to figure out what the error is for this code. I get the error message "global leak detection: totalWidth".

    Posted September 14, 2020 5:23pm by terd47
    terd47
    4,436 Points
    • JavaScript
    • JavaScript Numbers
    • Working with Numbers
    • Numbers and Strings

    2 Answers

  • theteamtreehouse
    theteamtreehouse
    3,472 Points

    Why this is wrong?

    Posted August 14, 2020 12:18pm by theteamtreehouse
    theteamtreehouse
    3,472 Points
    • JavaScript
    • JavaScript Numbers
    • Working with Numbers
    • Numbers and Strings

    1 Answer

  • Khatia Bagaturia
    Khatia Bagaturia
    2,050 Points

    Hi There ! Can you guys explain what am i writing wrong ? Thank you

    Posted July 12, 2020 5:37am by Khatia Bagaturia
    Khatia Bagaturia
    2,050 Points
    • JavaScript
    • JavaScript Numbers
    • Working with Numbers
    • Numbers and Strings

    2 Answers

  • malcolm mowlam
    malcolm mowlam
    3,856 Points

    challenge task 1 of 1 javascript working with numbers

    Posted June 28, 2020 11:56am by malcolm mowlam
    malcolm mowlam
    3,856 Points
    • JavaScript
    • JavaScript Numbers
    • Working with Numbers
    • Numbers and Strings

    2 Answers

  • Adeola Adeniyi
    seal-mask
    .a{fill-rule:evenodd;}techdegree
    Adeola Adeniyi
    Front End Web Development Techdegree Student 1,195 Points

    Help please

    Posted May 15, 2020 2:11am by Adeola Adeniyi
    .a{fill-rule:evenodd;}techdegree
    Adeola Adeniyi
    Front End Web Development Techdegree Student 1,195 Points
    • JavaScript
    • JavaScript Numbers
    • Working with Numbers
    • Numbers and Strings

    1 Answer

  • Sean Marevanhema
    Sean Marevanhema
    11,605 Points

    Numbers and strings

    Posted April 3, 2020 4:46am by Sean Marevanhema
    Sean Marevanhema
    11,605 Points
    • JavaScript
    • JavaScript Numbers
    • Working with Numbers
    • Numbers and Strings

    2 Answers

  • Sean Marevanhema
    Sean Marevanhema
    11,605 Points

    Numbers and strings

    Posted April 3, 2020 4:46am by Sean Marevanhema
    Sean Marevanhema
    11,605 Points
    • JavaScript
    • JavaScript Numbers
    • Working with Numbers
    • Numbers and Strings

    0 Answers

  • Sahmad Nakumbe
    Sahmad Nakumbe
    3,423 Points

    Imagine you have 10 images on a web page. Each image is 190 pixels wide. Using the two variables in this script, create

    Posted April 2, 2020 3:11am by Sahmad Nakumbe
    Sahmad Nakumbe
    3,423 Points
    • JavaScript
    • JavaScript Numbers
    • Working with Numbers
    • Numbers and Strings

    3 Answers

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.