Commit Graph

1665 Commits (3c3ceaa3f5a4164c5182a82f49842096cb027676)

Author SHA1 Message Date
PRAKASH 3c3ceaa3f5 Update declare-javascript-variables.english.md (#38884) 2020-05-27 09:37:34 +02:00
Oliver Eyton-Williams 5959c98d57 fix(curriculum): bump Babel - compat with node lts (#38905) 2020-05-27 12:28:38 +05:30
Oliver Eyton-Williams 912e7a5c2f refactor(curriculum): remove old seed code 2020-05-25 18:32:18 +05:30
Oliver Eyton-Williams f1c9b08cf3 fix(curriculum): add isHidden: false to challenges
This includes certificates (where it does nothing), but does not
include any translations.
2020-05-25 16:25:19 +05:30
Oliver Eyton-Williams 9b297ed76d fix(curriculum): control visibility via env 2020-05-25 16:25:19 +05:30
Oliver Eyton-Williams 68aef571ee feat: hide isHidden challenges 2020-05-25 16:25:19 +05:30
Oliver Eyton-Williams d865e2cb0e feat: restore challenge validation 2020-05-25 16:25:19 +05:30
Rajat Singh bdbf5bfd8d
fix:Added extra test cases for 'arguments-optional' problem (#38827) 2020-05-21 14:56:06 +05:30
Ty Mick 38ef6d68e5
fix(curriculum): Clarify definition of "symmetric difference" (#38792)
* Clarify definition of "symmetric difference"

* Add definition of binary operation

* Adjust wording in "Symmetric Difference"

* Improve preposition use

* Move instructions to the Instructions section

Co-authored-by: Eric Leung <eric@erictleung.com>
2020-05-20 11:28:16 +02:00
Josh Queen 23ca15241c
fix:(curriculum): Moved code tag to include new keyword (#38780)
* Moved code tag to include new keyword

The new keyword hasn't been explained in the curriculum yet, so have moved the <code> tag to include the new keyword to give a prompt that it needs to be used in the solution.

* Update curriculum/challenges/english/02-javascript-algorithms-and-data-structures/es6/use-arrow-functions-to-write-concise-anonymous-functions.english.md

Added comma.

Co-authored-by: Lasse Jørgensen <28780271+lasjorg@users.noreply.github.com>
2020-05-20 10:09:35 +02:00
Renato Melo e9614d60d4
fix: update regex specify exact number of matches - lastIndex = 0 before test (#38717) 2020-05-19 12:50:20 +02:00
Paul Gamble 54d59ffc37
Fix/curriculum en es6 complete a promise - modified test messages to be more clearer (#38836)
* Changed tests messages to indicate string

* minor tweak with wording of message

Co-authored-by: Oliver Eyton-Williams <ojeytonwilliams@gmail.com>
2020-05-19 12:44:59 +02:00
Damjan Ostrelič bfe76794c0
Allow use of g flag in Regular Expressions: Check for All or None (#38659)
* allow use of g flag

added functionality of tests to allow for the use of g flag by resetting the lastIndex as per example in https://github.com/freeCodeCamp/freeCodeCamp/pull/37941.

* Update curriculum/challenges/english/02-javascript-algorithms-and-data-structures/regular-expressions/check-for-all-or-none.english.md

Co-Authored-By: Shaun Hamilton <51722130+Sky020@users.noreply.github.com>

* Update curriculum/challenges/english/02-javascript-algorithms-and-data-structures/regular-expressions/check-for-all-or-none.english.md

Co-Authored-By: Shaun Hamilton <51722130+Sky020@users.noreply.github.com>

* Update curriculum/challenges/english/02-javascript-algorithms-and-data-structures/regular-expressions/check-for-all-or-none.english.md

Co-Authored-By: Shaun Hamilton <51722130+Sky020@users.noreply.github.com>

* Update curriculum/challenges/english/02-javascript-algorithms-and-data-structures/regular-expressions/check-for-all-or-none.english.md

Co-Authored-By: Shaun Hamilton <51722130+Sky020@users.noreply.github.com>

Co-authored-by: Shaun Hamilton <51722130+Sky020@users.noreply.github.com>
2020-05-18 22:50:50 -05:00
Vipul Sinha 7e2b159350
fix(curriculum): update solution to match seed (#38828) 2020-05-18 19:52:38 +02:00
Ty Mick 2b3bd5c52d
Improve formatting and clarity in "Subset" (#38814)
* Improve formatting and clarity in "Subset"

* Change method name to isSubsetOf

Co-authored-by: Eric Leung <eric@erictleung.com>

* Change method name to isSubsetOf

Co-authored-by: Eric Leung <eric@erictleung.com>

* Fix method name in tests

* Fix variable name aIsSubsetOfB

* Fix method name in solution

Co-authored-by: Eric Leung <eric@erictleung.com>
2020-05-18 17:24:54 +02:00
Ty Mick aad173fbc9
fix(curriculum): "Set Class" description formatting 2020-05-18 16:39:02 +02:00
Shaun Hamilton 9ad4c98ecb
fix(curriculum): added test to allow any order solution (#38771)
* added test to allow any order solution

* add removeJSComments for tests
2020-05-18 16:02:03 +02:00
Anthony Zeng 51f0d703f1
fix(learn): Fixed test issue in HashTable exercise (#38441)
* fixed issue where test for removal from hash table was passing even if method implementation is incorrect
2020-05-18 15:39:55 +02:00
Ashraf Nazar e10a046f8a
fix(curriculum): use example in Modifying an Object Within a Nested Object challenge (#38468)
* fix: use example in modifying an object within a nested object exercise to explain how to do so

* Update curriculum/challenges/english/02-javascript-algorithms-and-data-structures/basic-data-structures/modify-an-object-nested-within-an-object.english.md

Co-Authored-By: Randell Dawson <5313213+RandellDawson@users.noreply.github.com>

* Update curriculum/challenges/english/02-javascript-algorithms-and-data-structures/basic-data-structures/modify-an-object-nested-within-an-object.english.md

Co-Authored-By: Randell Dawson <5313213+RandellDawson@users.noreply.github.com>

* Update curriculum/challenges/english/02-javascript-algorithms-and-data-structures/basic-data-structures/modify-an-object-nested-within-an-object.english.md

Co-authored-by: Shaun Hamilton <51722130+Sky020@users.noreply.github.com>

* Update curriculum/challenges/english/02-javascript-algorithms-and-data-structures/basic-data-structures/modify-an-object-nested-within-an-object.english.md

Co-authored-by: Shaun Hamilton <51722130+Sky020@users.noreply.github.com>

Co-authored-by: Randell Dawson <5313213+RandellDawson@users.noreply.github.com>
Co-authored-by: Shaun Hamilton <51722130+Sky020@users.noreply.github.com>
2020-05-15 16:41:40 -05:00
anastasiasoenjoto f035a5c433
feat(learn): add fizzbuzz - RosettaCode challenges (#38610)
* create fizzbuzz challenge

* add lesson to meta file

* update testString

* fixed changes
2020-05-11 07:40:44 -05:00
Daksh Goyal 209d41fcdd
Fixes a Typo in Project Euler Problem 70 (#38782)
* Fixed a Typo in Eulers Problem 70

Line 15 should say "Find the value of <var>n</var>, 1 < <var>n</var> < 10**7, for which φ(<var>n</var>) is a permutation of <var>n</var> and the ratio <var>n</var>/φ(<var>n</var>) produces a minimum." instead of Find the value of <var>n</var>, 1 < <var>n</var> < 107, for which φ(<var>n</var>) is a permutation of <var>n</var> and the ratio <var>n</var>/φ(<var>n</var>) produces a minimum.

* Updated the Markdown 

Fixes the markdown to display proper superscript rather than just using ** to denote a superscript
2020-05-11 07:35:16 -05:00
Oliver Eyton-Williams 5e56a9a938
Feat(curriculum): scss not sass (#38764) 2020-05-09 20:01:18 +05:30
Kristofer Koishigawa b017ce192c
fix: dotall flag not supported in firefox (#38762)
Addresses https://github.com/freeCodeCamp/freeCodeCamp/pull/38546#issuecomment-625611675 where it's pointed out that Firefox doesn't support the /s regex flag yet. This workaround matches anything that's not blank.
2020-05-08 19:27:32 +02:00
anastasiasoenjoto e616197f9a
fix(learn): Made Changes to Instructions in BFS/DFS exercise (#38500)
* changes to bfs instructions

* added description on visual representation

* Added to the animation description

* Added information about stacks in the description

* Edited description for clarity

* Edited small details for grammar and clarity

* Apply suggested wording and typo fixes

Co-authored-by: Eric Leung <eric@erictleung.com>

* Add typo fixes to BFS challenge

Co-authored-by: Kyla Yujiri <27860923+kylayujiri@users.noreply.github.com>
Co-authored-by: Eric Leung <eric@erictleung.com>
2020-05-07 19:41:20 -05:00
Eric Elli f757840624
fix(learn): add test to return early pattern (#38751)
* add: test to return early pattern

Currently no test for a = 0 or b = 0. This results in if(a<=0 || b<= 0) also being a valid solution

* fix: typo in test text

* fix: update return early pattern test

Co-authored-by: Shaun Hamilton <51722130+Sky020@users.noreply.github.com>

Co-authored-by: Shaun Hamilton <51722130+Sky020@users.noreply.github.com>
2020-05-07 14:37:48 -05:00
Rostyslav Ugryniuk 8a858b470c
Fix: largestPrimeFactor function, Add: largestPrimeFactor(8) test (#38756)
* Fix `largestPrimeFactor(8)` result
* Improve `largestPrimeFactor` performance
* Add `largestPrimeFactor(8)` test
2020-05-07 13:31:59 -05:00
Shaun Hamilton b1de8ee4f8
fix(curriculum): change project codepen links (#38746) 2020-05-06 19:53:27 +05:30
anastasiasoenjoto f529104348 removed line breaks, fixed typos and wording of instructions 2020-05-06 18:24:39 +09:00
anastasiasoenjoto bfd9a6bcbc add self describing numbers to meta.json 2020-05-06 18:24:39 +09:00
anastasiasoenjoto 7981d40a13 create self-describing numbers lesson 2020-05-06 18:24:39 +09:00
Jeremy Fiel d69c0592ec revise regex for test "Use the correct ExpressJS method..." 2020-05-06 13:39:00 +09:00
Hassaan Pasha c5a087f8b7 fix (curriculum): corrected the valyue of the decrypted message 2020-05-05 19:00:48 +09:00
Bhanu Pratap Singh Rathore 1fc55513a4
feat(interview-prep): Converting and Transfering Rosetta problems (#38624)
* feat(interview-prep): Converting and Transfering Rosetta problems

* feat(interview-prep): Meta fix

* fix: adjusted descriptions and some test cases

* fix: Descriptions fixed

Co-authored-by: Kris Koishigawa <scissorsneedfoodtoo@gmail.com>
2020-05-05 18:52:32 +09:00
Twaha Rahman c0e2b65864
Wrapped all the test results with quotation (#38706) 2020-05-02 09:25:55 -05:00
Michael Schneider 1f2b66a432
feat: edit 2nd test description for clarity (#38661)
current description logically fits, yet fails this solution: myVar = ++myVar;
2020-05-02 08:27:52 -05:00
Farjad Fazli fd85f57376
fix(learn): fixed typo "in the left" should be "at the left" (#38651)
* Fixed typo "in the left" should be "at the left"

* Update curriculum/challenges/english/02-javascript-algorithms-and-data-structures/basic-javascript/comparison-with-the-equality-operator.english.md

Co-Authored-By: Shaun Hamilton <51722130+Sky020@users.noreply.github.com>

Co-authored-by: Shaun Hamilton <51722130+Sky020@users.noreply.github.com>
2020-05-02 08:17:11 -05:00
Joel Duran 7035516483
fix: typo in 'Build JavaScript Objects' (#38690) 2020-04-30 17:41:55 +05:30
Oliver Eyton-Williams f2f5dbc4b8
fix(curriculum): improve declaration tests (#38546) 2020-04-29 16:39:48 +05:30
ZhichengChen 39df9d94c9
fix(i18n): update Chinese translation of basic javascript (#38027) 2020-04-29 15:59:13 +05:30
Sagar Kharabe 18ca64ed4e
Update solution for use-breadth-first-search-in-a-binary-search-tree.english.md (#38221)
* Update use-breadth-first-search-in-a-binary-search-tree.english.md

* Update curriculum/challenges/english/08-coding-interview-prep/data-structures/use-breadth-first-search-in-a-binary-search-tree.english.md

Committed suggested changes

Co-Authored-By: Tom <20648924+moT01@users.noreply.github.com>

* add debugging function to solution

Ensured seed code and solution matched-up.

Co-Authored-By: Tom <20648924+moT01@users.noreply.github.com>

Co-authored-by: Tom <20648924+moT01@users.noreply.github.com>
Co-authored-by: Shaun Hamilton <51722130+Sky020@users.noreply.github.com>
2020-04-28 17:36:02 -05:00
Ashraf Nazar 46e0748af3
fix(curriculum): ensure algorithm does not include the Array method `… (#38520)
* fix(curriculum): replace comments with empty strings in merge-sort challenge

* Update curriculum/challenges/english/08-coding-interview-prep/algorithms/implement-merge-sort.english.md

Co-Authored-By: Tom <20648924+moT01@users.noreply.github.com>

Co-authored-by: Tom <20648924+moT01@users.noreply.github.com>
2020-04-27 07:28:37 -05:00
Gabriel Majeri 9230db42ee
fix(learn): update currency name in cash register challenge (#38637) 2020-04-26 17:38:22 +05:30
Kimon a3b54d34cb
Differentiate between test & match (#38498)
* Differentiate between test & match

I noticed that nowhere was there a mention that .match() and .test() pass in and are applied to opposite objects.  This would've saved me a few minutes of searching during later challenges that assume this is understood.

* Add in .match & .test difference after example

* fix: add spaces to stop lint errors

Co-authored-by: Oliver Eyton-Williams <ojeytonwilliams@gmail.com>
2020-04-25 08:35:46 -05:00
Mrugesh Mohapatra 987297fa2f
chore: update package lock on curriculum (#38623) 2020-04-24 14:29:00 +02:00
yitzhak-bloy 73b712ba75
Adding a test in problem-14-Longest-collatz-sequence.english.md (#38401)
* Adding a test in problem-14-Longest-collatz-sequence.english.md

Adding a test in problem-14-Longest-collatz-sequence.english.md

* fix(curriculum): use more efficient algorithm

Co-authored-by: Oliver Eyton-Williams <ojeytonwilliams@gmail.com>
2020-04-24 06:37:20 -05:00
Prayag 17be165d66
Add solution d3challenges (#38222)
* added solutions to data visualization with D3

* Update add-a-tooltip-to-a-d3-element.english.md

* Update add-attributes-to-the-circle-elements.english.md

* Update add-axes-to-a-visualization.english.md

* Update add-document-elements-with-d3.english.md

* Update add-inline-styling-to-elements.english.md

* Update add-labels-to-scatter-plot-circles.english.md

* Update change-styles-based-on-data.english.md

* Update change-the-color-of-an-svg-element.english.md

* Update change-the-presentation-of-a-bar-chart.english.md

* Update create-a-bar-for-each-data-point-in-the-set.english.md

* Update create-a-linear-scale-with-d3.english.md

* Update create-a-scatterplot-with-svg-circles.english.md

* Update display-shapes-with-svg.english.md

* Update dynamically-change-the-height-of-each-bar.english.md

* Update dynamically-set-the-coordinates-for-each-bar.english.md

* Update invert-svg-elements.english.md

* Update learn-about-svg-in-d3.english.md

* Update select-a-group-of-elements-with-d3.english.md

* Update set-a-domain-and-a-range-on-a-scale.english.md

* Update style-d3-labels.english.md

* Update work-with-dynamic-data-in-d3.english.md

* Update use-a-pre-defined-scale-to-place-elements.english.md

* Update use-dynamic-scales.english.md

* Update use-the-d3.max-and-d3.min-functions-to-find-minimum-and-maximum-values-in-a-dataset.english.md

* Update work-with-data-in-d3.english.md
2020-04-24 06:34:53 -05:00
Jeremy Fiel 1ee03344ef
fix: update reference to Pug version for Set up a Template Engine challenge (#38572)
* update reference to Pug version, relates to {freeCodeCamp/boilerplate-advancednode/pull/9}
2020-04-23 22:09:20 +02:00
Ashraf Nazar c2558b3816
fix(Curriculum): ensure code that includes and is not equal to the fl… (#38497)
* fix(Curriculum): ensure code that includes and is not equal to the flat or flatMap methods do not fail the test suite

* Update curriculum/challenges/english/02-javascript-algorithms-and-data-structures/intermediate-algorithm-scripting/steamroller.english.md

Co-Authored-By: Tom <20648924+moT01@users.noreply.github.com>

* Update steamroller.english.md

Co-authored-by: Tom <20648924+moT01@users.noreply.github.com>
2020-04-23 14:59:58 -05:00
Tom 560aacd4eb
fix: add more tests for curriclum testing (#38464)
Co-Authored-By: Oliver Eyton-Williams <ojeytonwilliams@gmail.com>
Co-authored-by: Oliver Eyton-Williams <ojeytonwilliams@gmail.com>
2020-04-23 22:31:15 +05:30
Anonyma d6f3aa6c36
Spanish corrections in "APIs and Microservices" challenges (#38029) 2020-04-23 19:27:21 +05:30