[exercises/concept/fruit-picker] Exercise requires users to be familiar with the throw statement #1634
Labels
x:action/fix
Fix an issue
x:knowledge/intermediate
Quite a bit of Exercism knowledge required
x:module/concept-exercise
Work on Concept Exercises
x:rep/medium
Medium amount of reputation
x:status/claimed
Someone is working on this issue
x:type/content
Work on content (e.g. exercises, concepts)
While I was doing the exercise myself (which is made to test users about the
Arrow functions
andCallbacks
concepts), I came across something that I found a bit confusing: task 3 of this exercise requires users toThis implies using the javascript throw statement as part of the function the exercise asks you to build. However, the
Errors
concept (where thethrow
statement is developed) is to be found much further down the syllabus tree, and the way the instruction is described in the task might make users think that "throwing an error" just means returning a string with an message with an error text as opposed to using theerror
statement. This is what I did myself, which meant that when running the tests, I got a message from the debugger saying that I was supposed to use something I didn't even know existed to complete the exercise.I believe this can be easily fixed by either:
error
statement). An easy fix to this would be to add a link to its MDN page in the very same paragraph.The text was updated successfully, but these errors were encountered: