Misleading curriculum

https://www.freecodecamp.org/learn/javascript-algorithms-and-data-structures/intermediate-algorithm-scripting/wherefore-art-thou

Well, from the pop-up of possible forum posts, this is not an isolated incident.

Every solution given ignores the part of the instructions to not change code below the line which has a “return arr” beneath it and returns above it. While it is possible to come to that solution, none of your solutions (3) do that. It’s not helpful to students when the instructions aren’t followed.

1 Like

I don’t see anything misleading about the posted solutions. They solve the challenge.

Note - the guide solutions are not part of the curriculum. The curriculum certainly is not being misleading here.

I created a issue proposing we remove those comments.

Surely (let’s hope) you can put your mind back into the mind of before you know what you know now and say to yourself, "they have ‘return arr’ there… which means I have to figure a way to solve this with the return arr.

If it’s optional, then remove it instead of adding needless confusion. This point was raised in the comments of the solution last year.

Maybe you didn’t read this:


I agree that the comment is not needed, but claiming that the curriculum is “misleading” is incorrect, at best.

This topic was automatically closed 182 days after the last reply. New replies are no longer allowed.