* 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>
* style - update record collection challenge, variables shouldn't be name after keywords
* minor - typo fix
* Apply suggestions from code review
Co-authored-by: Shaun Hamilton <51722130+ShaunSHamilton@users.noreply.github.com>
Co-authored-by: Shaun Hamilton <51722130+ShaunSHamilton@users.noreply.github.com>
* fix(curriculum): check if count gets incremented by function
* update text
* Update regex to look for whitespace
* look for function globally
* Apply suggestions from gikf
Co-authored-by: gikf <60067306+gikf@users.noreply.github.com>
Co-authored-by: gikf <60067306+gikf@users.noreply.github.com>
* fix: fluid containers test not specific
* fix: fluid containers test not specific
* fix: update fluid containers test not specific
Co-authored-by: Shaun Hamilton <51722130+ShaunSHamilton@users.noreply.github.com>
Co-authored-by: Shaun Hamilton <51722130+ShaunSHamilton@users.noreply.github.com>
* fix: added 5th test to amb challenge
* fix: added 4th test to amb challenge
* Fix: updated 4th amb test
Co-authored-by: Shaun Hamilton <51722130+ShaunSHamilton@users.noreply.github.com>
Co-authored-by: Shaun Hamilton <51722130+ShaunSHamilton@users.noreply.github.com>
* fix(curriculum): specify id attribute in the instructions
* Update curriculum/challenges/english/03-front-end-libraries/jquery/remove-an-element-using-jquery.md
Co-authored-by: Shaun Hamilton <51722130+ShaunSHamilton@users.noreply.github.com>
Co-authored-by: Shaun Hamilton <51722130+ShaunSHamilton@users.noreply.github.com>
* feat: add two tests
* fix: missing backticks
* fix: improve wording in tests description
* fix: remove not needed link
* fix: unify test with description
* fix: make expected result format in instructions and tests match
* fix: grammar
Co-authored-by: Tom <20648924+moT01@users.noreply.github.com>
Co-authored-by: Tom <20648924+moT01@users.noreply.github.com>
* fix(curriculum) prevent users from submitting an array instead of string
* use strict equality instead of new test
* Add suggestions from Tom
Co-authored-by: Tom <20648924+moT01@users.noreply.github.com>
Co-authored-by: Tom <20648924+moT01@users.noreply.github.com>
* fix(curriculum) regex compatibility issue for Safari
* fix: escape the dot parameter in regex
Co-authored-by: Oliver Eyton-Williams <ojeytonwilliams@gmail.com>
Co-authored-by: Tom <20648924+moT01@users.noreply.github.com>