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

⚡ CYBER NOVEMBER SALE ⚡ 50% off any plan for 6 months, exclusive to new subscribers.

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

⚡ CYBER NOVEMBER SALE ⚡ 50% off any plan for 6 months, exclusive to new subscribers.

  • 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
      • • 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
    • Showing results for:
    • JavaScript
    • JavaScript Quickstart
    • Arrays and Loops
    • Create a forEach Loop
    • Close
  • jack twist
    seal-mask
    .a{fill-rule:evenodd;}techdegree
    jack twist
    Full Stack JavaScript Techdegree Student 18,575 Points

    doesn't /*array.push(forEach loop)*/ work?

    Posted on Jul 15, 2021 by jack twist
    .a{fill-rule:evenodd;}techdegree
    jack twist
    Full Stack JavaScript Techdegree Student 18,575 Points
    • JavaScript
    • JavaScript Quickstart
    • Arrays and Loops
    • Create a forEach Loop

    1 Answer

  • Kiara Stewart
    Kiara Stewart
    4,283 Points

    Where did I go wrong? For each array

    Posted on Apr 25, 2021 by Kiara Stewart
    Kiara Stewart
    4,283 Points
    • JavaScript
    • JavaScript Quickstart
    • Arrays and Loops
    • Create a forEach Loop

    1 Answer

  • Chris Roper
    Chris Roper
    6,934 Points

    JavaScript Quickstart create a forEach loop

    Posted on Feb 13, 2021 by Chris Roper
    Chris Roper
    6,934 Points
    • JavaScript
    • JavaScript Quickstart
    • Arrays and Loops
    • Create a forEach Loop

    1 Answer

  • Daniela Garcia
    Daniela Garcia
    5,071 Points

    I need help.

    Posted on Feb 5, 2021 by Daniela Garcia
    Daniela Garcia
    5,071 Points
    • JavaScript
    • JavaScript Quickstart
    • Arrays and Loops
    • Create a forEach Loop

    1 Answer

  • Paul Stolt
    Paul Stolt
    3,688 Points

    Javascript forEach Loop Code Challenge

    Posted on Aug 17, 2020 by Paul Stolt
    Paul Stolt
    3,688 Points
    • JavaScript
    • JavaScript Quickstart
    • Arrays and Loops
    • Create a forEach Loop

    1 Answer

  • Rebecca Fennelly
    Rebecca Fennelly
    1,718 Points

    Hi there, I've been stuck on this for a while and would love some help. Thanks

    Posted on Apr 24, 2020 by Rebecca Fennelly
    Rebecca Fennelly
    1,718 Points
    • JavaScript
    • JavaScript Quickstart
    • Arrays and Loops
    • Create a forEach Loop

    9 Answers

  • Michael Bijnens
    Michael Bijnens
    2,095 Points

    Hey guys, I'm getting the error message "number is not defined here". Can somebody tell me what I am doing wrong?

    Posted on Apr 13, 2020 by Michael Bijnens
    Michael Bijnens
    2,095 Points
    • JavaScript
    • JavaScript Quickstart
    • Arrays and Loops
    • Create a forEach Loop

    1 Answer

  • djg eoopy
    djg eoopy
    149 Points

    Using forEach, iterate over the numbers array and multiply each number by 5, storing these new numbers in the times5 arr

    Posted on Mar 24, 2020 by djg eoopy
    djg eoopy
    149 Points
    • JavaScript
    • JavaScript Quickstart
    • Arrays and Loops
    • Create a forEach Loop

    1 Answer

  • marvink
    marvink
    8,214 Points

    Don't know how to store iterated new numbers in another array.

    Posted on Jan 26, 2020 by marvink
    marvink
    8,214 Points
    • JavaScript
    • JavaScript Quickstart
    • Arrays and Loops
    • Create a forEach Loop

    1 Answer

  • Arthur Kakulidis
    Arthur Kakulidis
    2,657 Points

    What am I doing wrong here?

    Posted on May 5, 2019 by Arthur Kakulidis
    Arthur Kakulidis
    2,657 Points
    • JavaScript
    • JavaScript Quickstart
    • Arrays and Loops
    • Create a forEach Loop

    2 Answers

  • veronikapost
    veronikapost
    2,552 Points

    Why do I get undefined results when using index in for each() ?

    Posted on Mar 10, 2019 by veronikapost
    veronikapost
    2,552 Points
    • JavaScript
    • JavaScript Quickstart
    • Arrays and Loops
    • Create a forEach Loop

    2 Answers

  • Unsubscribed User
    seal-mask
    .a{fill-rule:evenodd;}techdegree
    Unsubscribed User
    Front End Web Development Techdegree Student 33,901 Points

    Looking for help with forEach loop - code challenge

    Posted on Jan 16, 2019 by Unsubscribed User
    .a{fill-rule:evenodd;}techdegree
    Unsubscribed User
    Front End Web Development Techdegree Student 33,901 Points
    • JavaScript
    • JavaScript Quickstart
    • Arrays and Loops
    • Create a forEach Loop

    2 Answers

  • Shira Lotan
    Shira Lotan
    3,040 Points

    help to solve this one

    Posted on Nov 25, 2018 by Shira Lotan
    Shira Lotan
    3,040 Points
    • JavaScript
    • JavaScript Quickstart
    • Arrays and Loops
    • Create a forEach Loop

    1 Answer

  • Elaine Cadman
    Elaine Cadman
    2,335 Points

    I can do this without the .forEach, but I am lost with the .forEach

    Posted on Oct 2, 2018 by Elaine Cadman
    Elaine Cadman
    2,335 Points
    • JavaScript
    • JavaScript Quickstart
    • Arrays and Loops
    • Create a forEach Loop

    3 Answers

  • Arthur Kakulidis
    Arthur Kakulidis
    2,657 Points

    Can someone please tell me what I'm doing wrong here.

    Posted on Aug 23, 2018 by Arthur Kakulidis
    Arthur Kakulidis
    2,657 Points
    • JavaScript
    • JavaScript Quickstart
    • Arrays and Loops
    • Create a forEach Loop

    2 Answers

  • Mirza Sumaiya Alam
    Mirza Sumaiya Alam
    2,631 Points

    My solution shows error 'unexpected token .' . Please let me know what's wrong in my code. My code is in next step.

    Posted on Aug 17, 2018 by Mirza Sumaiya Alam
    Mirza Sumaiya Alam
    2,631 Points
    • JavaScript
    • JavaScript Quickstart
    • Arrays and Loops
    • Create a forEach Loop

    2 Answers

  • johnny louifils
    seal-mask
    .a{fill-rule:evenodd;}techdegree seal-36
    johnny louifils
    Full Stack JavaScript Techdegree Graduate 18,926 Points

    How do you put the push method in this code

    Posted on Aug 6, 2018 by johnny louifils
    .a{fill-rule:evenodd;}techdegree seal-36
    johnny louifils
    Full Stack JavaScript Techdegree Graduate 18,926 Points
    • JavaScript
    • JavaScript Quickstart
    • Arrays and Loops
    • Create a forEach Loop

    1 Answer

  • fillipi rocha
    fillipi rocha
    335 Points

    cant complete my forEach loop

    Posted on Jul 30, 2018 by fillipi rocha
    fillipi rocha
    335 Points
    • JavaScript
    • JavaScript Quickstart
    • Arrays and Loops
    • Create a forEach Loop

    2 Answers

  • Henrique Oliveira
    PLUS
    Henrique Oliveira
    Courses Plus Student 588 Points

    Trouble solving forEach task! Help!

    Posted on Jul 20, 2018 by Henrique Oliveira
    Henrique Oliveira
    Courses Plus Student 588 Points
    • JavaScript
    • JavaScript Quickstart
    • Arrays and Loops
    • Create a forEach Loop

    2 Answers

  • Dionte Barnes
    Dionte Barnes
    10,140 Points

    Using forEach, iterate over the numbers array and multiply each number by 5, storing these new numbers in the times5 arr

    Posted on Jul 13, 2018 by Dionte Barnes
    Dionte Barnes
    10,140 Points
    • JavaScript
    • JavaScript Quickstart
    • Arrays and Loops
    • Create a forEach Loop

    2 Answers

  • Vincent Nguyen
    Vincent Nguyen
    4,520 Points

    How can I store these in the times5 array?

    Posted on Jul 12, 2018 by Vincent Nguyen
    Vincent Nguyen
    4,520 Points
    • JavaScript
    • JavaScript Quickstart
    • Arrays and Loops
    • Create a forEach Loop

    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.