Commit Graph

1627 Commits

Author SHA1 Message Date
39df9d94c9 fix(i18n): update Chinese translation of basic javascript (#38027) 2020-04-29 15:59:13 +05:30
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
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
9230db42ee fix(learn): update currency name in cash register challenge (#38637) 2020-04-26 17:38:22 +05:30
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
987297fa2f chore: update package lock on curriculum (#38623) 2020-04-24 14:29:00 +02:00
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
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
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
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
d6f3aa6c36 Spanish corrections in "APIs and Microservices" challenges (#38029) 2020-04-23 19:27:21 +05:30
56f6d4654c fix(learn): update solutions in interview-prep challenges (#38430)
Co-authored-by: Tom <20648924+moT01@users.noreply.github.com>
Co-authored-by: Oliver Eyton-Williams <ojeytonwilliams@gmail.com>
2020-04-23 02:14:50 +05:30
3a82e9f857 fix: add more examples on how to set key-value pairs (#38472)
* fix(Curriculum): update examples on how to set key-value pairs

* Update curriculum/challenges/english/02-javascript-algorithms-and-data-structures/basic-data-structures/add-key-value-pairs-to-javascript-objects.english.md

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

* Update curriculum/challenges/english/02-javascript-algorithms-and-data-structures/basic-data-structures/add-key-value-pairs-to-javascript-objects.english.md

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

* Update add-key-value-pairs-to-javascript-objects.english.md

* Update add-key-value-pairs-to-javascript-objects.english.md

Co-authored-by: Tom <20648924+moT01@users.noreply.github.com>
2020-04-22 11:20:30 -05:00
17585b63f8 added const to test string (#38583) 2020-04-21 09:12:53 +02:00
1204c72657 feat(interview-prep): Converting and Transferring Rosetta problems (#38371)
* feat(interview-prep): Converting and Transferring Rosetta problems
2020-04-21 13:20:40 +09:00
2b60f3e61e fixed arrow function with no curly braces failing IIFE test (#38544)
* fixed arrow function with no curly braces failing IIFE test

* added iife 2nd test fix and 3 new solutions
2020-04-20 11:04:28 +02:00
d739a0cc5d fix(curriculum): change debugging console lesson (#38554)
* changed lesson to match behaviour

* Update wording for debugging

Co-Authored-By: Oliver Eyton-Williams <ojeytonwilliams@gmail.com>

* Update wording from suggestion

Co-Authored-By: Oliver Eyton-Williams <ojeytonwilliams@gmail.com>

* all suggestions with note

* fix: replaced code tags with backticks for markdown

Co-authored-by: Oliver Eyton-Williams <ojeytonwilliams@gmail.com>
Co-authored-by: Ashraf Nazar <ashraf.caspian@gmail.com>

Co-Authored-By: Oliver Eyton-Williams <ojeytonwilliams@gmail.com>

Co-authored-by: Oliver Eyton-Williams <ojeytonwilliams@gmail.com>
2020-04-18 16:31:41 +05:30
756f33775e fix(learn): update video challenge (#38564)
* fix(learn): update video challenge

* fix: update scrimba URL

Co-authored-by: Mrugesh Mohapatra <me@raisedadead.com>
2020-04-18 16:16:31 +05:30
165387553d Updated spanish file (#38485) 2020-04-12 10:45:25 -05:00
3683474b4b updated russian file (#38484) 2020-04-12 10:42:31 -05:00
74de0d2276 updated chinese file (#38481) 2020-04-12 10:40:01 -05:00
e1e18fb764 updated portuguese file (#38483) 2020-04-12 10:37:21 -05:00
99c2f0d4f5 fix(curriculum): allow hex triplets for red and green colors to pass tests (#38523) 2020-04-12 17:15:31 +03:00
1d87dd82e3 updated english file (#38482) 2020-04-11 22:52:54 -05:00
19c514b702 Fix/functional programming challange (#38516)
* Improved readbility of FP challage

* replace the with a

* corrected gramatical mistake
2020-04-11 21:20:44 -05:00
13b248d464 chore: npm audit fix in all packages 2020-04-07 14:24:34 +05:30
40c5d4384e Improved Russian translate (#37538)
* Improved Russian translate

* Update curriculum/challenges/russian/03-front-end-libraries/bootstrap/add-font-awesome-icons-to-our-buttons.russian.md

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

* Update curriculum/challenges/russian/03-front-end-libraries/bootstrap/add-font-awesome-icons-to-our-buttons.russian.md

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

* Like fixed

Co-authored-by: Randell Dawson <5313213+RandellDawson@users.noreply.github.com>
2020-04-05 14:51:10 -07:00
941457f1ff Fix Text (#37505)
Fix text portuguese
2020-04-02 15:18:21 -07:00
Tom
84edc07076 fix: remove unneeded assert text (#38453) 2020-03-30 18:23:18 +02:00
02f5609c99 Remove double slashes in Strip control codes challenge (#38466)
* Remove double slashes in Strip control codes challenge

* Remove unnecessary message argument from assertions

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

Co-authored-by: Randell Dawson <5313213+RandellDawson@users.noreply.github.com>
2020-03-30 17:23:02 +02:00
Tom
a20ea28e45 fix: update rosetta ids in meta file to match challenge files (#38456) 2020-03-28 12:35:19 +05:30
a5818506f0 fix(curriculum): remove setup code not needed anymore from Testing Objects for Properties challenge (#38454)
* fix: remove setup code

* fix: remove call to function
2020-03-28 02:25:04 +12:00
740d57d962 fix (learn): fixed spelling mistake in authentication-strategies.md (#38460) 2020-03-27 06:23:28 -07:00
3ee1c39e41 Adding a solution for reversing a DoubleLinkedList. (#38427) 2020-03-26 21:01:49 -07:00
06d97ac813 fix(curriculum/learn): moved the comment one line below. (#38422)
moved the comment ` //add code above this line` in the text editor of [this challenge](https://www.freecodecamp.org/learn/javascript-algorithms-and-data-structures/es6/use--to-import-everything-from-a-file) one line below so that it makes meaning.
2020-03-26 20:01:58 -05:00
f142eed6ef Fix pig latin challenge description (#38018)
* Fix pig latin challenge description

Added statement for beginning with consonants and if a vowel does not begin with a vowel.

* fix: update description/instructions

* fix:  removed extra line break

Co-Authored-By: Oliver Eyton-Williams <ojeytonwilliams@gmail.com>

* fix:  removed extra line break

Co-Authored-By: Oliver Eyton-Williams <ojeytonwilliams@gmail.com>

Co-authored-by: Randell Dawson <5313213+RandellDawson@users.noreply.github.com>
Co-authored-by: Oliver Eyton-Williams <ojeytonwilliams@gmail.com>
2020-03-26 23:38:07 +01:00
1ae4e25303 Improved translate (#37536) 2020-03-26 12:36:32 -07:00
5a44fcf77e Improved Russian translate (#37537)
Co-authored-by: Randell Dawson <5313213+RandellDawson@users.noreply.github.com>
2020-03-26 12:13:23 -07:00
f9eefa18f0 Fixed Google translations and added Solution (#37488)
Also modified the wording to be more cohesive with the rest of the documentation.
2020-03-26 11:23:03 -07:00
1fdb691996 fix(learn): updated tests and deleted old sample code (#38450) 2020-03-26 23:12:18 +05:30
4fbce07792 fix: improve test regex to validate disallowed methods that can be bypassed by prototype reassignments and/or otherwise (#38214)
* fix: improve test regex to validate disallowed methods that can be bypassed by prototype reassignments and/or otherwise

* fix: fixing regex pattern
2020-03-26 08:13:34 -07:00
bb7a50e341 Enable newlines in Authentication with Socket.IO, test 3 (#37862)
* newlines in Authentication with Socket.IO, test 3

Both my original formatting and glitch's "format this file" button add a newline between "io.use("  and  "passport.authorize"
".+" catches one or more of anything that isn't a newline.
"[^]+" catches one or more of anything including newlines. 
This change updates the test accordingly so people who use glitch's formatting don't get left searching for assistance

* less permissive match to prevent shenanigans

Won't work with comments still.

* fix my own silliness
2020-03-26 08:09:34 -05:00
ff0973ad65 restructured grammar for clarity (#37368)
Rewrote parts of the sentences about the zero-index to add clarity.
2020-03-26 16:38:07 +05:30
448068888c fix(i18n): Spanish corrected explanation and fixed redundancy (#37281)
described the media query in a bit more detail and fixed a redundancy description on the first paragraph.
2020-03-26 16:11:04 +05:30
7ad220d1ac fix: add tests for exercise tracker (#37696)
* fix: add tests for exercise tracker
2020-03-26 10:39:06 +01:00
e0e6334628 fix(curriculum): Consolidated comments for JavaScript Algorithms and Data Structures challenges - part 3 of 4 (#38264)
* fix: remove example code from challenge seed

* fix: remove declaration from solution

* fix: added sum variable back in

* fix: reverted description back to original version

* fix: added examples to description section

* fix: added complete sentence

Co-Authored-By: Oliver Eyton-Williams <ojeytonwilliams@gmail.com>

* fix: corrected typo

Co-Authored-By: Manish Giri <manish.giri.me@gmail.com>

* fix: reverted to original desc with formatted code

* fix: removed unnecessary code example from description section

Co-Authored-By: Oliver Eyton-Williams <ojeytonwilliams@gmail.com>

* fix: failiing test on iterate through array with for loop

* fix: changed to Only change this line

Co-Authored-By: Manish Giri <manish.giri.me@gmail.com>

Co-authored-by: Oliver Eyton-Williams <ojeytonwilliams@gmail.com>
Co-authored-by: Manish Giri <manish.giri.me@gmail.com>
Co-authored-by: moT01 <tmondloch01@gmail.com>
2020-03-25 16:07:13 +01:00
50f15886b8 fix(curriculum): Strip comments from user code for Use Destructuring Assignment to Extract Values from Objects challenge (#38213)
* fix: strip user code to improve tests

* fix: removed closing section tag messing up tests
2020-03-25 13:28:17 +01:00
8b0cbd6f83 Modify tests for testing objects for properties challenge (#38414)
* Stronger test cases for testing objects for properties

Change function signature to take in a custom object to be tested

* YML formatting mistake

* Yaml no space in string

* Small one more fix - most likely final

* REmove double space in return

* Update instruction Section
2020-03-24 22:09:57 -07:00
1f2a93b646 fix: added additional test for altText (#38395) 2020-03-23 07:02:34 -05:00