* 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>
* Typo in Rosetta Code Challenge : "Sudoku"
It is stated blank fields are represented by 0s when they are actually -1s.
* Update curriculum/challenges/english/10-coding-interview-prep/rosetta-code/sudoku.md
Co-authored-by: gikf <60067306+gikf@users.noreply.github.com>
Co-authored-by: Mrugesh Mohapatra <1884376+raisedadead@users.noreply.github.com>
Co-authored-by: gikf <60067306+gikf@users.noreply.github.com>
* fix(curriculum): use mediaText in CSSHelp
prevent selection of style elements with class or media attributes
this should avoid picking up some browser extensions
* fix(curriculum): allow any response status for error response
* Update curriculum/challenges/english/05-apis-and-microservices/apis-and-microservices-projects/timestamp-microservice.md
Co-authored-by: Oliver Eyton-Williams <ojeytonwilliams@gmail.com>
* Update curriculum/challenges/english/05-apis-and-microservices/apis-and-microservices-projects/timestamp-microservice.md
Co-authored-by: Oliver Eyton-Williams <ojeytonwilliams@gmail.com>
Co-authored-by: Oliver Eyton-Williams <ojeytonwilliams@gmail.com>
* Adding more than one stack item to the stack tests for #42322
* fix(curriculum): improved peek, pop and clear tests
tests that peek does not remove top element and pop does remove top element and addded an element to the stack for the clear test
* fix: rework challenge to use argument in function
* fix: add solution
* fix: use MathJax to improve look of math notation
* 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: define test arrays in background
* fix: add solution
* fix: position block evenly between paragraphs
* fix: include rules from external link
* fix: change to preferred version of spelling
Co-authored-by: Sem Bauke <46919888+Sembauke@users.noreply.github.com>
* fix: improve wording
Co-authored-by: Sem Bauke <46919888+Sembauke@users.noreply.github.com>
* changing Charles -> Ada in JavaScript challenge descriptions
* fix: changing Charles -> Ada in JavaScript challenge descriptions
* fix: changing firstName value from Ada to Augusta in javascript lesson
* fix: rework challenge to use argument in function
* fix: add solution
* fix: use MathJax to improve look of math notation
* fix: grammar
Co-authored-by: Nicholas Carrigan (he/him) <nhcarrigan@gmail.com>
Co-authored-by: Nicholas Carrigan (he/him) <nhcarrigan@gmail.com>
* fix: rework challenge to use argument in function
* fix: use MathJax to improve math notation
* fix: position block evenly between paragraphs
* fix: add solution
* fix: rework challenge to use argument in function
* fix: add solution
* fix: position examples evenly between paragraphs
* fix: use MathJax for math notation
* Updated the handleClick method to use updater function in react tutorial english
* Update comments in the seed code of curriculum/challenges/english/03-front-end-libraries/react/render-conditionally-from-props.md
Changing comments in the seed code according to the list of [agreed-upon comments](https://github.com/freeCodeCamp/freeCodeCamp/blob/main/curriculum/dictionaries/english/comments.json)
Co-authored-by: Shaun Hamilton <shauhami020@gmail.com>
Co-authored-by: Shaun Hamilton <shauhami020@gmail.com>
"The second entry of `12` is removed" is changed to "The second occurrence of `12` is removed". I believe the phrase "second entry" might create confusion as the readers might think of the second entry of the array rather than the second occurrence of the array element 12.