Skip to content

04_removeFromArray: Hint about array.forEach and/or array.includes() in some way #520

Open
@schikulski

Description

@schikulski

Prerequisites

  • I have thoroughly read and understand The Odin Project Contributing Guide
    I have searched the existing issues to ensure this improvement hasn't been suggested before (please have a look through our open issues list to make sure)
    The title of this issue follows the <Location of the improvement>: <Brief description of the improvement> format, e.g. Exercises: Add exercise on XYZ
    (Optional) I am interested in working on this issue and would like to be assigned to it

Improvement Description

As a TOP student I successfully did this exercise by using two for loops – though it was not pretty.

After checking the solution, I see that both array.forEach and array.Includes() would make this a whole lot easier, and I'm thankful I learned that.

But I can't help but think that it would be a better learning experience if I would get a hint about those methods beforehand in the hints section.

I'm pretty sure I wasn't exposed to the either forEach or Includes earlier in the course, but I might be wrong.

Acceptance Criteria

  • Include a subtle hint about the forEach and Includes methods in the hints section.

(Optional) Additional Comments

No response

Activity

eyad-alkhalidy

eyad-alkhalidy commented on May 31, 2025

@eyad-alkhalidy

We've actually been exposed to these Array methods earlier, in the javascript.info guide linked here

It's still helpful to encourage learners to use array methods here, but without specifying which ones.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    Status: Needs ReviewThis issue/PR needs an initial or additional review

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

      Participants

      @schikulski@eyad-alkhalidy

      Issue actions

        04_removeFromArray: Hint about array.forEach and/or array.includes() in some way · Issue #520 · TheOdinProject/javascript-exercises