Skip to main content

Notice: Workspaces are undergoing maintenance and are temporarily unavailable.

🚀 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
  • Peter Huang
    Peter Huang
    5,427 Points

    if map() the same as join()?

    Posted January 2, 2023 4:09am by Peter Huang
    Peter Huang
    5,427 Points
    • JavaScript
    • JavaScript Array Iteration Methods
    • Array Manipulation
    • Transform Array Items with map()

    2 Answers

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

    Radix?

    Posted February 3, 2022 8:05am by karan Badhwar
    .a{fill-rule:evenodd;}techdegree seal-36
    karan Badhwar
    Web Development Techdegree Graduate 18,136 Points
    • JavaScript
    • JavaScript Array Iteration Methods
    • Array Manipulation
    • Transform Array Items with map()

    1 Answer

  • Kaung Khant Zaw
    Kaung Khant Zaw
    1,515 Points

    What if I want to return 2lines of code ?

    Posted September 9, 2019 10:45am by Kaung Khant Zaw
    Kaung Khant Zaw
    1,515 Points
    • JavaScript
    • JavaScript Array Iteration Methods
    • Array Manipulation
    • Transform Array Items with map()

    1 Answer

  • Ewerton Luna
    seal-mask
    .a{fill-rule:evenodd;}techdegree seal-36
    Ewerton Luna
    Full Stack JavaScript Techdegree Graduate 24,031 Points

    I don't understand why I'm able to use .toFixed on an integer

    Posted September 6, 2019 2:29pm by Ewerton Luna
    .a{fill-rule:evenodd;}techdegree seal-36
    Ewerton Luna
    Full Stack JavaScript Techdegree Graduate 24,031 Points
    • JavaScript
    • JavaScript Array Iteration Methods
    • Array Manipulation
    • Transform Array Items with map()

    1 Answer

  • James Roberts
    James Roberts
    16,976 Points

    Display Prices exercise

    Posted May 15, 2019 12:43am by James Roberts
    James Roberts
    16,976 Points
    • JavaScript
    • JavaScript Array Iteration Methods
    • Array Manipulation
    • Transform Array Items with map()

    1 Answer

  • Khumoyunmirzo Nosirov
    Khumoyunmirzo Nosirov
    8,689 Points

    Why my code is running differently , it shows error

    Posted March 31, 2019 1:35pm by Khumoyunmirzo Nosirov
    Khumoyunmirzo Nosirov
    8,689 Points
    • JavaScript
    • JavaScript Array Iteration Methods
    • Array Manipulation
    • Transform Array Items with map()

    1 Answer

  • ammarkhan
    seal-mask
    .a{fill-rule:evenodd;}techdegree
    ammarkhan
    Front End Web Development Techdegree Student 21,661 Points

    Why my code return undefined

    Posted September 26, 2018 5:08am by ammarkhan
    .a{fill-rule:evenodd;}techdegree
    ammarkhan
    Front End Web Development Techdegree Student 21,661 Points
    • JavaScript
    • JavaScript Array Iteration Methods
    • Array Manipulation
    • Transform Array Items with map()

    2 Answers

  • Rachel Heneault
    Rachel Heneault
    12,471 Points

    Different way of doing things

    Posted April 20, 2018 9:03am by Rachel Heneault
    Rachel Heneault
    12,471 Points
    • JavaScript
    • JavaScript Array Iteration Methods
    • Array Manipulation
    • Transform Array Items with map()

    2 Answers

  • Tony Brackins
    Tony Brackins
    28,766 Points

    Iterate an array of objects

    Posted December 10, 2017 4:34pm by Tony Brackins
    Tony Brackins
    28,766 Points
    • JavaScript
    • JavaScript Array Iteration Methods
    • Array Manipulation
    • Transform Array Items with map()

    2 Answers

  • Tim Strand
    Tim Strand
    22,458 Points

    Why use toFixed instead of toLocaleString?

    Posted October 27, 2017 2:31pm by Tim Strand
    Tim Strand
    22,458 Points
    • JavaScript
    • JavaScript Array Iteration Methods
    • Array Manipulation
    • Transform Array Items with map()

    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