javascript-analyzer icon indicating copy to clipboard operation
javascript-analyzer copied to clipboard

Start of Analyzer for Bird Watcher

Open pertrai1 opened this issue 3 years ago • 1 comments

Based on the below from design doc - https://github.com/exercism/javascript/blob/main/exercises/concept/bird-watcher/.meta/design.md


  • [x] For all tasks check that the student actually used a for loop.

totalBirdCount

  • [ ] Verify that the condition is written with < x.length instead of <= y.length -1.
  • [x] Check whether a shorthand assignment += was used to increase the sum (non-essential feedback).
  • [x] Verify the total was properly initialized with 0 instead of e.g. null
  • [x] Verify the increment operator was used in loop header step

birdsInWeek

  • [ ] Verify a helper variable was used instead of duplicating the calculation in the initialization and condition of the loop
  • [ ] Other checks should be the same as for totalBirdCount

fixBirdCountLog

  • [x] Check that no if-statement was used (it is not necessary if the step size was set correctly), type actionable
  • [x] Check whether a shorthand assignment += was used to increase the loop counter (non-essential feedback)
  • [x] Check whether the increment operator was used in the loop body

  • [ ] modify index.ts for output
  • [ ] create custom comments where needed

pertrai1 avatar Jan 02 '22 04:01 pertrai1