🤑 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
  • Joseph Quintiliano
    seal-mask
    .a{fill-rule:evenodd;}techdegree seal-36
    Joseph Quintiliano
    Front End Web Development Techdegree Graduate 14,338 Points

    why would the substring parameters be (0, 3) and not (0, 2) if i only want to return the first three letters?

    Posted April 24, 2023 6:16pm by Joseph Quintiliano
    .a{fill-rule:evenodd;}techdegree seal-36
    Joseph Quintiliano
    Front End Web Development Techdegree Graduate 14,338 Points
    • JavaScript
    • JavaScript Array Iteration Methods
    • Array Manipulation
    • Practice map()

    3 Answers

  • Ede Harrison
    Ede Harrison
    3,615 Points

    map() with template literals in JavaScript

    Posted September 29, 2022 11:40am by Ede Harrison
    Ede Harrison
    3,615 Points
    • JavaScript
    • JavaScript Array Iteration Methods
    • Array Manipulation
    • Practice map()

    1 Answer

  • Ronald Greer
    seal-mask
    .a{fill-rule:evenodd;}techdegree seal-36
    Ronald Greer
    Front End Web Development Techdegree Graduate 56,430 Points

    Unsure how to abbreviate these values.

    Posted December 22, 2021 2:20pm by Ronald Greer
    .a{fill-rule:evenodd;}techdegree seal-36
    Ronald Greer
    Front End Web Development Techdegree Graduate 56,430 Points
    • JavaScript
    • JavaScript Array Iteration Methods
    • Array Manipulation
    • Practice map()

    1 Answer

  • Hanwen Zhang
    Hanwen Zhang
    20,084 Points

    Why My code is not working here :( Please help!!

    Posted April 3, 2021 3:47pm by Hanwen Zhang
    Hanwen Zhang
    20,084 Points
    • JavaScript
    • JavaScript Array Iteration Methods
    • Array Manipulation
    • Practice map()

    1 Answer

  • Oliver Duran
    seal-mask
    .a{fill-rule:evenodd;}techdegree seal-36
    Oliver Duran
    Full Stack JavaScript Techdegree Graduate 22,828 Points

    How did you approach this challenge ?

    Posted October 1, 2020 5:59pm by Oliver Duran
    .a{fill-rule:evenodd;}techdegree seal-36
    Oliver Duran
    Full Stack JavaScript Techdegree Graduate 22,828 Points
    • JavaScript
    • JavaScript Array Iteration Methods
    • Array Manipulation
    • Practice map()

    1 Answer

  • Dwayne Bynum
    Dwayne Bynum
    10,408 Points

    daysOfWeek.map((day)=>{day.substr(0,4)}); Using the curly Braces do not work in any of the challenges WHY?

    Posted June 3, 2020 7:07pm by Dwayne Bynum
    Dwayne Bynum
    10,408 Points
    • JavaScript
    • JavaScript Array Iteration Methods
    • Array Manipulation
    • Practice map()

    1 Answer

  • Tadjiev Codes
    Tadjiev Codes
    9,626 Points

    Use the map method on the daysOfWeek array, creating a new array of abbreviated week days. Each abbreviated string shoul

    Posted April 7, 2020 10:00am by Tadjiev Codes
    Tadjiev Codes
    9,626 Points
    • JavaScript
    • JavaScript Array Iteration Methods
    • Array Manipulation
    • Practice map()

    3 Answers

  • Haardik Gupta
    seal-mask
    .a{fill-rule:evenodd;}techdegree
    Haardik Gupta
    Full Stack JavaScript Techdegree Student 5,459 Points

    i'm confused

    Posted March 9, 2020 5:57pm by Haardik Gupta
    .a{fill-rule:evenodd;}techdegree
    Haardik Gupta
    Full Stack JavaScript Techdegree Student 5,459 Points
    • JavaScript
    • JavaScript Array Iteration Methods
    • Array Manipulation
    • Practice map()

    1 Answer

  • Christopher Evans
    Christopher Evans
    9,896 Points

    Cannot read property '2' of undefined.

    Posted February 24, 2020 5:20pm by Christopher Evans
    Christopher Evans
    9,896 Points
    • JavaScript
    • JavaScript Array Iteration Methods
    • Array Manipulation
    • Practice map()

    1 Answer

  • Joel Greek
    Joel Greek
    4,421 Points

    Bummer: Line 7: Unexpected token ILLEGAL in slice solution.

    Posted February 4, 2020 11:20am by Joel Greek
    Joel Greek
    4,421 Points
    • JavaScript
    • JavaScript Array Iteration Methods
    • Array Manipulation
    • Practice map()

    2 Answers

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

    Could someone please help me pass this challenge?

    Posted September 7, 2019 7:10pm 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
    • Practice map()

    1 Answer

  • Fredrick Adegoke
    Fredrick Adegoke
    1,983 Points

    when I try my code out in my work space it works, but on the challenge task editor it fails, and I am sure my code works

    Posted August 6, 2019 8:51pm by Fredrick Adegoke
    Fredrick Adegoke
    1,983 Points
    • JavaScript
    • JavaScript Array Iteration Methods
    • Array Manipulation
    • Practice map()

    1 Answer

  • Adam Arul
    Adam Arul
    13,757 Points

    The correct result is stored in `abbreviatedDays` but `map` was not used.

    Posted August 6, 2019 9:40am by Adam Arul
    Adam Arul
    13,757 Points
    • JavaScript
    • JavaScript Array Iteration Methods
    • Array Manipulation
    • Practice map()

    1 Answer

  • Khumoyunmirzo Nosirov
    Khumoyunmirzo Nosirov
    8,689 Points

    what is wrong here?

    Posted April 2, 2019 10:10am by Khumoyunmirzo Nosirov
    Khumoyunmirzo Nosirov
    8,689 Points
    • JavaScript
    • JavaScript Array Iteration Methods
    • Array Manipulation
    • Practice map()

    2 Answers

  • Zak Mosbacher
    seal-mask
    .a{fill-rule:evenodd;}techdegree seal-36
    Zak Mosbacher
    Full Stack JavaScript Techdegree Graduate 16,080 Points

    Something's not right. Output of `abbreviatedDays`: "Sat"

    Posted December 7, 2018 1:31am by Zak Mosbacher
    .a{fill-rule:evenodd;}techdegree seal-36
    Zak Mosbacher
    Full Stack JavaScript Techdegree Graduate 16,080 Points
    • JavaScript
    • JavaScript Array Iteration Methods
    • Array Manipulation
    • Practice map()

    1 Answer

  • Sam Costanzo
    seal-mask
    .a{fill-rule:evenodd;}techdegree
    Sam Costanzo
    Full Stack JavaScript Techdegree Student 16,379 Points

    I know this works but why can't I submit it? Is this a bug or am I missing something?

    Posted November 17, 2018 8:08pm by Sam Costanzo
    .a{fill-rule:evenodd;}techdegree
    Sam Costanzo
    Full Stack JavaScript Techdegree Student 16,379 Points
    • JavaScript
    • JavaScript Array Iteration Methods
    • Array Manipulation
    • Practice map()

    1 Answer

  • Humoyunmirzo Nosirov
    PLUS
    Humoyunmirzo Nosirov
    Courses Plus Student 5,154 Points

    NEED SOME HELP

    Posted August 28, 2018 3:47pm by Humoyunmirzo Nosirov
    Humoyunmirzo Nosirov
    Courses Plus Student 5,154 Points
    • JavaScript
    • JavaScript Array Iteration Methods
    • Array Manipulation
    • Practice map()

    3 Answers

  • Ceil-Ian Maralit
    seal-mask
    .a{fill-rule:evenodd;}techdegree seal-36
    Ceil-Ian Maralit
    Front End Web Development Techdegree Graduate 19,434 Points

    Abbreviation gone wrong.

    Posted August 21, 2018 9:02am by Ceil-Ian Maralit
    .a{fill-rule:evenodd;}techdegree seal-36
    Ceil-Ian Maralit
    Front End Web Development Techdegree Graduate 19,434 Points
    • JavaScript
    • JavaScript Array Iteration Methods
    • Array Manipulation
    • Practice map()

    1 Answer

  • Daniel Benisti
    seal-mask
    .a{fill-rule:evenodd;}techdegree seal-36
    Daniel Benisti
    Front End Web Development Techdegree Graduate 22,224 Points

    help please

    Posted August 9, 2018 4:09pm by Daniel Benisti
    .a{fill-rule:evenodd;}techdegree seal-36
    Daniel Benisti
    Front End Web Development Techdegree Graduate 22,224 Points
    • JavaScript
    • JavaScript Array Iteration Methods
    • Array Manipulation
    • Practice map()

    1 Answer

  • Julien Arseneau
    seal-mask
    .a{fill-rule:evenodd;}techdegree
    Julien Arseneau
    Full Stack JavaScript Techdegree Student 5,200 Points

    How can I abbreviate a string?

    Posted July 23, 2018 6:31pm by Julien Arseneau
    .a{fill-rule:evenodd;}techdegree
    Julien Arseneau
    Full Stack JavaScript Techdegree Student 5,200 Points
    • JavaScript
    • JavaScript Array Iteration Methods
    • Array Manipulation
    • Practice map()

    2 Answers

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

    Unable to pass the challenge because I changed the original code

    Posted March 18, 2018 11:41pm by ammarkhan
    .a{fill-rule:evenodd;}techdegree
    ammarkhan
    Front End Web Development Techdegree Student 21,661 Points
    • JavaScript
    • JavaScript Array Iteration Methods
    • Array Manipulation
    • Practice map()

    1 Answer

  • Shafique Mohammed
    seal-mask
    .a{fill-rule:evenodd;}techdegree
    Shafique Mohammed
    Front End Web Development Techdegree Student 13,625 Points

    I need help with map method on the daysOfWeek array, I'm trying to create a new array with abbreviated weekdays.

    Posted November 19, 2017 12:58pm by Shafique Mohammed
    .a{fill-rule:evenodd;}techdegree
    Shafique Mohammed
    Front End Web Development Techdegree Student 13,625 Points
    • JavaScript
    • JavaScript Array Iteration Methods
    • Array Manipulation
    • Practice map()

    2 Answers

  • Ioana Rusu
    Ioana Rusu
    9,599 Points

    Help with this code challenge :)

    Posted November 14, 2017 9:28pm by Ioana Rusu
    Ioana Rusu
    9,599 Points
    • JavaScript
    • JavaScript Array Iteration Methods
    • Array Manipulation
    • Practice map()

    6 Answers

  • Victor Horton
    Victor Horton
    20,277 Points

    Says " The correct result is stored in `abbreviatedDays` but `map` was not used."

    Posted October 28, 2017 2:58pm by Victor Horton
    Victor Horton
    20,277 Points
    • JavaScript
    • JavaScript Array Iteration Methods
    • Array Manipulation
    • Practice map()

    3 Answers

  • Nir Tal
    Nir Tal
    25,921 Points

    why this code is not the right answer??

    Posted October 26, 2017 7:36pm by Nir Tal
    Nir Tal
    25,921 Points
    • JavaScript
    • JavaScript Array Iteration Methods
    • Array Manipulation
    • Practice map()

    2 Answers

  • Ian Hart
    seal-mask
    .a{fill-rule:evenodd;}techdegree seal-36
    Ian Hart
    Full Stack JavaScript Techdegree Graduate 40,962 Points

    stuck on code challenge

    Posted October 26, 2017 12:45pm by Ian Hart
    .a{fill-rule:evenodd;}techdegree seal-36
    Ian Hart
    Full Stack JavaScript Techdegree Graduate 40,962 Points
    • JavaScript
    • JavaScript Array Iteration Methods
    • Array Manipulation
    • Practice map()

    2 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.