* fix: clean-up Project Euler 141-160
* fix: corrections from review
Co-authored-by: Sem Bauke <46919888+Sembauke@users.noreply.github.com>
* fix: corrections from review
Co-authored-by: Tom <20648924+moT01@users.noreply.github.com>
* fix: use different notation for consistency
* Update curriculum/challenges/english/10-coding-interview-prep/project-euler/problem-144-investigating-multiple-reflections-of-a-laser-beam.md
Co-authored-by: gikf <60067306+gikf@users.noreply.github.com>
Co-authored-by: Sem Bauke <46919888+Sembauke@users.noreply.github.com>
Co-authored-by: Tom <20648924+moT01@users.noreply.github.com>
* fix: recognize background-image as correct (#42738)
The page mentioned in #42738 before would not accept background-image and background, now it should.
* fix: CI build error
Co-authored-by: Ilenia <nethleen@gmail.com>
Co-authored-by: Ilenia <nethleen@gmail.com>
* 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>
* revert: disable portuguese
First certification is not 100% yet. Shipped too soon. :(
* feat: enable portuguese curriculum
Curriculum can build in portuguese, leaving client disabled to
prevent language from appearing in nav bar.
* feat: move audited cert list
Moves the audited cert list to the config, instead of the utils.
* 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.
* fix(curriculum): small english improvement
* fix(curriculum): small english improvement
Co-authored-by: Parth Parth <34807532+thecodingaviator@users.noreply.github.com>
Co-authored-by: Parth Parth <34807532+thecodingaviator@users.noreply.github.com>
* fix: ensure using in test arrays from background
* feat: add solution
* fix: improve description
* fix: grammar
Co-authored-by: Nicholas Carrigan (he/him) <nhcarrigan@gmail.com>
Co-authored-by: Nicholas Carrigan (he/him) <nhcarrigan@gmail.com>
* fix: solve off by one erro in solution
closes#42141
* fix: add white space for readability
Co-authored-by: Nicholas Carrigan (he/him) <nhcarrigan@gmail.com>
Co-authored-by: Nicholas Carrigan (he/him) <nhcarrigan@gmail.com>
* refactor: bring api jest tests to root
* refactor: pull client tests to root
* fix: remove ancient curriculum babelrc
* feat: run all jest tests at once
* fix: remove unused babelrcRoot
* chore: remove more jests
* Small language improvement
The correct term is assignment operator.
* Small language improvement
Co-authored-by: Niraj Nandish <nirajnandish@icloud.com>
Co-authored-by: Niraj Nandish <nirajnandish@icloud.com>
* fix(learn): rework Rosetta Code SHA256
* fix: add extra info
* Add suggestions from Nick
Co-authored-by: Nicholas Carrigan (he/him) <nhcarrigan@gmail.com>
Co-authored-by: Nicholas Carrigan (he/him) <nhcarrigan@gmail.com>
* fix: Update wording of test in 'Add Methods After Inheritance'
* fix(curriculum): Correct grammar of test description
Co-authored-by: Nicholas Carrigan (he/him) <nhcarrigan@gmail.com>
Co-authored-by: Nicholas Carrigan (he/him) <nhcarrigan@gmail.com>
* fix(curriculum): look for possible www. link in regex
* Add suggestions from Nick
Co-authored-by: Nicholas Carrigan (he/him) <nhcarrigan@gmail.com>
Co-authored-by: Nicholas Carrigan (he/him) <nhcarrigan@gmail.com>
* fix: restrict removeJSComments to test-evaluator
To prevent @babel from being included everywhere, this only calls
removeJSComments inside the test-evaluator
* test: add removeJSComments test
* replace repl.it with replit.com in the English version
Replace repl.it to replit.com in the English version. Chinese and Spanish versions have the same issue.
* Updated the repl.it to replit.com or Replit
I changed the text from replit.com to Replit and added the changes to the files outside the curriculum folder.
* Forgot removing one .com.
There was on Replit.com that I missed when I reviewed the files.
* Resolve conflicts
I got an unable to auto merge so resolving conflicts and trying again.
* try committing conflicts again
* Trying the conflicts again
* chore: fix typo in personal library
Co-authored-by: Shaun Hamilton <51722130+ShaunSHamilton@users.noreply.github.com>
Co-authored-by: gemmaf98 <44875585+gemmaf98@users.noreply.github.com>
Co-authored-by: Mrugesh Mohapatra <1884376+raisedadead@users.noreply.github.com>
Co-authored-by: Shaun Hamilton <51722130+ShaunSHamilton@users.noreply.github.com>
* Removes comments in js challanges by default
* fix local-scope-and-functions test regex
* fix all languages
* revert language changes
* removed unnecessary removeJSComments from challenges
* fix challanges in other languages
* removed removeJSComments from all challanges
Replace repl.it to replit.com in the English version. Chinese and Spanish versions have the same issue.
Co-authored-by: gemmaf98 <44875585+gemmaf98@users.noreply.github.com>