Incorrect Analysis: JavaScript analyzer makes little sense when a object literal is used #127
Labels
good first issue
Good for newcomers
help wanted
Extra attention is needed
x:action/improve
Improve existing functionality/content
x:knowledge/elementary
Little Exercism knowledge required
x:module/analyzer
Work on Analyzers
x:size/small
Small amount of work
x:type/coding
Write code that is not student-facing content (e.g. test-runners, generators, but not exercises)
Describe the incorrectness
I don't think the analyzers advice makes any sense here:
The advice assumes a student is using an array - in which case there is complexity to hide and I agree a function as a named abstraction is useful, but in this case a well-named lookup table is serving the same purpose as a function, so the advice makes little sense.
Which exercise
Resistor Duo
Source file(s)
Expected analysis
None. (well at least not on this point)
Additional context
None.
The text was updated successfully, but these errors were encountered: