* Update referenced object keys for clarity
Because each movie object has both `Rated` and `imdbRating` key/value pairs, simply referencing `rating` could be confusing to campers. IMO explicitly referencing the keys by name (`Title` and `imdbRating`) removes ambiguity in the non-important part of this challenge and helps campers focus on learning about `.map()`.
* other references and tests
* Update curriculum/challenges/english/02-javascript-algorithms-and-data-structures/functional-programming/use-the-map-method-to-extract-data-from-an-array.md
* reverse previous changes
* Update curriculum/challenges/english/02-javascript-algorithms-and-data-structures/functional-programming/use-the-map-method-to-extract-data-from-an-array.md
Co-authored-by: Shaun Hamilton <shauhami020@gmail.com>
Co-authored-by: Shaun Hamilton <shauhami020@gmail.com>
* fix: replace html with markdown and MathJax
* fix: replace html with markdown and MathJax
* fix: replace example
* fix: clarify expected input and output
* fix: add another test
* fix: change image in seed code
* fix: grammar
Co-authored-by: Nicholas Carrigan (he/him) <nhcarrigan@gmail.com>
Co-authored-by: Nicholas Carrigan (he/him) <nhcarrigan@gmail.com>
* Ensure the test only checks the state name variable is present, it doesn't have to be the only word
* Emphasise in the test the wording that the instructions use
* Added note detail and event.preventDefault() test
* Replaced lookbehinds with matches
* Reverted to using \s instead of .
Now only matches if event.preventDefault() call is the only thing in the comment. This avoids matching note comments like "need to call event.preventDefault() here"
* Added optional semicolons for both comment checks
* Added trailing whitespace for line comment check
* Switched to match length checks
This should be equivalent to the two original lookbehinds
* Removed unnecessary .length check
Co-authored-by: Oliver Eyton-Williams <ojeytonwilliams@gmail.com>
Co-authored-by: Oliver Eyton-Williams <ojeytonwilliams@gmail.com>
* fix: add input and output to tests descriptions
* fix: remove results from background code
* fix: clarify input and output of function
* fix: corrections from review
Co-authored-by: Sem Bauke <46919888+Sembauke@users.noreply.github.com>
Co-authored-by: Sem Bauke <46919888+Sembauke@users.noreply.github.com>
* fix: use in tests arrays defined in background
* feat: add solution
* fix: improve wording
Co-authored-by: Tom <20648924+moT01@users.noreply.github.com>
Co-authored-by: Tom <20648924+moT01@users.noreply.github.com>