Commit Graph

138 Commits

Author SHA1 Message Date
Jesse Rykerson
284db50f47 fix(guide): update "Search and Replace" intermediate solution (#36366)
new solution addresses the possibility of first letter of arg "before" being lower case and needing to change the first letter of "after" from capital to lowercase

solution more streamlined

added resource to help with regular expressions
2019-07-24 20:01:35 +05:30
Randell Dawson
1494a50123 fix(guide): restructure curriculum guide articles (#36501)
* fix: restructure certifications guide articles
* fix: added 3 dashes line before prob expl
* fix: added 3 dashes line before hints
* fix: added 3 dashes line before solutions
2019-07-24 13:29:27 +05:30
Oliver Eyton-Williams
6078081a3f feat: Add guide article and update its challenge (#36371)
* feat: Add guide article and update its challenge

* Update guide/english/certifications/javascript-algorithms-and-data-structures/basic-javascript/replace-loops-using-recursion/index.md

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

* Update guide/english/certifications/javascript-algorithms-and-data-structures/basic-javascript/replace-loops-using-recursion/index.md

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

* Update guide/english/certifications/javascript-algorithms-and-data-structures/basic-javascript/replace-loops-using-recursion/index.md

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

* Update guide/english/certifications/javascript-algorithms-and-data-structures/basic-javascript/replace-loops-using-recursion/index.md

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

* fix: Stop hints from being hidden

* fix: Improve the wording.

* Update index.md

Fixed per suggestion

* Update index.md

Fixed per suggestion
2019-07-19 16:14:28 -05:00
xJuggl3r
58e7005573 Add ES6 syntax to Challenge' solution (#36367)
* ES6 syntax

Added ES6 syntax to challenge' solution.

* Add ES6 solution to challenge

An optional way to solve the challenge using ES6 arrow functions
2019-07-19 16:03:21 -05:00
six9
f03418f7aa Update index.md (#36453) 2019-07-14 06:05:41 +01:00
Jinyoung Park
5602111789 fix : add URL to a missing link (#36413)
* fix : add URL to a missing link

In Relevant Links (line 54), the first URL text 'Using typeof' was missing a href value. I fixed it by adding the link to a FreeCodeCamp's Javascript Debugging curriculum that introduces typeof method. (
Debugging: Use typeof to Check the Type of a Variable : https://learn.freecodecamp.org/javascript-algorithms-and-data-structures/debugging/use-typeof-to-check-the-type-of-a-variable)

* I'm a first-time open source contributor. If you have any feedback about my pull request, feel free to share it with me.

* Update guide/english/certifications/javascript-algorithms-and-data-structures/basic-algorithm-scripting/boo-who/index.md

Remove the first bullet instead of adding the link (suggested by RandellDawson)

Co-Authored-By: Randell Dawson <5313213+RandellDawson@users.noreply.github.com>
2019-07-09 08:12:23 -07:00
Nilys
f75e20a969 Delete redundant solution (#36393)
The first advanced solution is almost identical to the intermediate one. Per "similar but better" rule, I believe the first one should be kept (or at the bare minimum, they should at least fill the same category).
2019-07-07 17:05:02 -07:00
Randell Dawson
331cbb88f8 fix(guide): Remove repl.it links from challenge related guide articles (English) (#36204)
* fix: remove repl.it links english

* fix: add extra line

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

* fix: add extra line

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

* fix: add extra line

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

* fix: add extra line

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

* fix: add extra line

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

* fix: add extra line

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

* fix: add extra line

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

* fix: add extra line

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

* fix: add extra line

Co-Authored-By: Tom <20648924+moT01@users.noreply.github.com>
2019-07-01 08:49:24 -05:00
Tiago Salema
fcefb7895d Added a suggestion of solution with a simple for loop (#35884)
* Added a suggestion of solution

* fix: removed repl.it links and corrected bullets
2019-06-27 17:52:00 -07:00
Randell Dawson
81a0c0c8e0 fix(guide) add solutions to Factorialize a Number and Reverse and String challenges (#35967)
* fix: added iterative basic solution

* fix: added another basic solution
2019-06-25 18:34:03 -07:00
Navjot Singh
f267d2a61b Fixed Broken Links in Binary Agents (#35947)
The parseInt link to the freecodecamps forum pointed to a link with no resource. And Also fixed the link for String.length and removed a dead link.
2019-06-25 12:59:15 -07:00
Randell Dawson
f57e6d69d8 fix: remove codepen.io links from challenge articles 2019-06-25 16:52:24 +08:00
Randell Dawson
3fa14df925 fix: renamed folder without starting dash (#36124) 2019-06-21 18:05:33 -04:00
Natalie Cardot
4cebb759f2 Spelling/grammar fixes (#36164) 2019-06-08 11:18:08 +05:30
Natalie Cardot
33a61168c0 Correct word in code explanation (#36146) 2019-06-01 09:06:54 -05:00
Randell Dawson
ad3d0aed04 fix: corrected guide solutions and explanations (#36125) 2019-05-29 01:34:08 +05:30
Guayo Mena
f5b94b51f1 feat(curriculum): Extend solution explanation for Convert HTML Entities challenge (#35835)
* Extend solution explanation

The explanation for the advanced code solution was a little cumbersome.
It tried to explain the used method, but also tried to explain an alternative solution, both mixed together.
To fix that, I moved everything related to the alternative solution to another paragraph.
Additionally, I added a more detailed explanation about this alternative solution.
Hopefully, with this fixes, both solutions will be clearer to the user.

* Replace intermediate solution

Replace the intermediate solution with a more concise one.

I took the opportunity to eliminate the indenting in all 3 snippets to remove unnecessary blank space on the left.
I also changed the wording on one of the instructions and fixed a typo.

* Remove external links

* Simplity regex declaration

I replaced `new RegExp()` in order to make the solution cleaner and shorter

* Update index.md
2019-05-26 17:53:41 +05:30
Vishwas Navada K
78826ea90d Fix the function call flattenArray->steamrollArray (#36128)
Replace the function call in the Intermediate Code Solution from flattenArray to steamrollArray which is the actual function name.
2019-05-25 17:49:57 -07:00
lasjorg
c852dc7d1d fix(guide): correct regex for intermediate solution code (#35784) 2019-05-24 23:45:26 -07:00
Crystal Yungwirth
c37cb92e63 Alternative Advanced Code Solution (#35965)
* Alternative Advanced Code Solution

Uses .replace() instead of .split()-.join()

* Update guide/english/certifications/javascript-algorithms-and-data-structures/intermediate-algorithm-scripting/binary-agents/index.md

Co-Authored-By: Parth Parth <34807532+thecodingaviator@users.noreply.github.com>

* Update guide/english/certifications/javascript-algorithms-and-data-structures/intermediate-algorithm-scripting/binary-agents/index.md

Co-Authored-By: Parth Parth <34807532+thecodingaviator@users.noreply.github.com>

* Update guide/english/certifications/javascript-algorithms-and-data-structures/intermediate-algorithm-scripting/binary-agents/index.md

Co-Authored-By: Parth Parth <34807532+thecodingaviator@users.noreply.github.com>

* Update guide/english/certifications/javascript-algorithms-and-data-structures/intermediate-algorithm-scripting/binary-agents/index.md

Co-Authored-By: Parth Parth <34807532+thecodingaviator@users.noreply.github.com>

* Update guide/english/certifications/javascript-algorithms-and-data-structures/intermediate-algorithm-scripting/binary-agents/index.md

Co-Authored-By: Parth Parth <34807532+thecodingaviator@users.noreply.github.com>

* Update guide/english/certifications/javascript-algorithms-and-data-structures/intermediate-algorithm-scripting/binary-agents/index.md

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

* Addresses review by RandellDawson
2019-05-25 01:40:05 +05:30
Natalie Cardot
545b8a6f34 Modify if statement (#36088)
* Modify if statement

Change the solution so an empty string is returned when num is less than 1 rather than less than 0 for consistency with instructions.

* Add test 

New test checks that if num is 0, an empty string is returned

* Fix test 

Fixing errors in newly proposed test that checks that empty string is returned when num is 0

* Modify intermediate solution

Changing if statement in intermediate solution to check whether num is less than 1 rather than less than 0. (Also adding curly brackets to that solutions if/else statements.)

* fix: removed unnecessary assert message arguments
2019-05-20 21:08:20 -04:00
Rajat Verma
53fd5d8c14 solution logic fixed for negative numbers (#36093) 2019-05-20 08:31:10 -07:00
Gerard Hynes
a30982e862 Add comments and update callback arguments' names (#36082)
* Add comments and update callback arguments' names

I've added a few comments to the solution and given the callback arguments more descriptive names to clarify what the solution is doing, since this challenge seemed a little more complex than the previous challenges.

* Update guide/english/certifications/javascript-algorithms-and-data-structures/functional-programming/use-the-reduce-method-to-analyze-data/index.md

That makes absolute sense and is clearer. Thank you.

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

* Update indentation to be two-spaced
2019-05-19 10:45:34 -07:00
Tom
21118bc26a fix/regex-lower-number-of-matches (#36004)
* fix/regex-lower-number-of-matches

* fix/update-guide

* fix/convert-blockquote-to-backticks
2019-05-17 23:53:00 +01:00
Randell Dawson
0a1eeea424 fix(guide) Replace invalid prism code block names (#35961)
* fix: replace sh with shell

fix replace terminal with shell

fix replace node with js

fix replace output with shell

fix replace cs with csharp

fix replace c++ with cpp

fix replace c# with csharp

fix replace javasctipt with js

fix replace syntax  with js

fix replace unix with shell

fix replace linux with shell

fix replace java 8 with java

fix replace swift4 with swift

fix replace react.js with jsx

fix replace javascriot with js

fix replace javacsript with js

fix replace c++ -  with cpp

fix: corrected various typos

fix: replace Algorithm with nothing

fix: replace xaml with xml

fix: replace solidity with nothing

fix: replace c++ with cpp

fix: replace txt with shell

fix: replace code with json and css

fix: replace console with shell
2019-05-15 19:08:19 +02:00
Randell Dawson
4b4762716c fix(curriculum): Rewrote the Write Higher-Order Arrow Functions challenge and moved to Functional Programming section (#35954)
* fix: reworded and moved challenge

* fix: removed extra line

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

* fix; removed extra line

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

* fix: reworded sentence

Co-Authored-By: RandellDawson <5313213+RandellDawson@users.noreply.github.com>
2019-05-15 11:12:17 -05:00
Randell Dawson
b013f2ab3a fix: declared x variable (#36046) 2019-05-15 11:49:44 +05:30
Deanna Tran
338d7ee8a7 Change "rest operator" to say "rest parameter" in challenges and guide (#35496)
* change es6 challenges rest operator to param

* fix rest parameter typos

* change rest operator to parameter in guide

* fix casing

* change rest operator to rest parameter in guide

* change rest operator to rest parameter in curriculum

* remove extra whitespace

* remove whitespaces

* remove whitespace

* fix: removed arabic file

* fix: removed chinese file
2019-05-08 16:30:24 +02:00
Tom
3cecf26f44 update restrict possible usernames solution (#35973) 2019-05-05 13:37:03 -07:00
Randell Dawson
cc6f234228 [Fix] correct Guide article example for Iterate Through the Keys of an Object with a for...in Statement (#35197)
* fix: added dot btwn [user] and online

* fix: corrected example for other languages
2019-05-05 13:26:22 -05:00
Navjot Singh
b9fdbffa71 Broken Links in Sum of all odd Fibbonaci Nos Guide (#35911)
Fixed a broken and a missing link in the guide.
2019-05-03 14:21:09 +05:30
Randell Dawson
88e7c2d704 fix: added better hint and solution (#35746) 2019-05-01 18:09:45 -04:00
Daniella Todd
36a4df9afa Updated solution-Include intro (#34199) (#34486)
Added intro paragraph and further hints.
2019-05-01 12:48:31 +02:00
Peter Kay
a1e33ebf81 update regex resource link (#35901) 2019-04-24 07:19:44 -07:00
Cezary Waś
65a92f7ef9 Defining variables (#35891)
biString, uniString and i should be defined.
2019-04-22 11:25:30 +05:30
sidiousvic
7f845c1d2f [NEW] A clearer, more readable return statement (#35565)
* A clearer, more readable return statement

Use .filter() to get the odd values in array.
Use .reduce() to sum.

Two separate tasks, one line, easier to read and understand.
Updated comments and Code Explanation accordingly.
2019-04-12 14:29:47 +02:00
asims2404
c7aba9e970 Removed image (#35806) 2019-04-09 15:41:23 -07:00
asims2404
83c9258bed Update index.md (#35805)
The advanced solution does not meet problem criteria.
"The built-in repeat()-method should not be used"
2019-04-09 15:39:45 -07:00
David
685dbbde7f Updated problem example to a working implementation matching the solution style (#35062) 2019-04-02 17:47:17 -07:00
Oliver Eyton-Williams
73277d8ba8 fix: Restore missing emojis and fix broken links (#35703)
* fix: Restore missing emojis and fix broken links

* fix: Remove emojis to conform with style guide

* fix: Remove the last emoticons
2019-03-29 12:52:56 -07:00
Andrew Ma
7a37788ea1 add beginner solution to pig latin (#35572) 2019-03-29 22:48:54 +05:30
Adrian Skar
08bdc8640e fix(guide): ES6 destructuring assignment with the rest operator (#35681)
* fix(guide): ES6 destructuring assignment with the rest operator

Minor fixes/enhancements.

* Update guide/english/certifications/javascript-algorithms-and-data-structures/es6/use-destructuring-assignment-with-the-rest-operator-to-reassign-array-elements/index.md

Co-Authored-By: AdrianSkar <adrian@adrianskar.com>

* Update guide/english/certifications/javascript-algorithms-and-data-structures/es6/use-destructuring-assignment-with-the-rest-operator-to-reassign-array-elements/index.md

Co-Authored-By: AdrianSkar <adrian@adrianskar.com>

* Update guide/english/certifications/javascript-algorithms-and-data-structures/es6/use-destructuring-assignment-with-the-rest-operator-to-reassign-array-elements/index.md

Co-Authored-By: AdrianSkar <adrian@adrianskar.com>

* Fixes for solutions 

Copy/paste friendly code as discussed.

* Update guide/english/certifications/javascript-algorithms-and-data-structures/es6/use-destructuring-assignment-with-the-rest-operator-to-reassign-array-elements/index.md

Co-Authored-By: AdrianSkar <adrian@adrianskar.com>
2019-03-29 09:40:13 -07:00
Amy Lam
914a7c522d Copy edits (#35536)
* Copy edits to Basic JavaScript section

* Copy edits to ES6 section

* Update index.md
2019-03-29 22:06:58 +05:30
Nikolai Kiselev
03c603787f Add solution to Arguments Optional challenge (#35654)
* Add solution to Arguments Optional challenge

* fix: remove repl.it links

* fix: rename variables

* fix: remove unused parts of template

* fix: update links markdown

* fix: replaced existing Intermediate with this one
2019-03-29 06:17:56 -07:00
grets311
3ece63f044 Update solution to meet exercise criteria (#34583)
The exercise requires a match at greater than 5 characters however the solution has a match occurring at a minimum of 5.
Request to update 5 to a 6.
2019-03-29 04:55:24 -04:00
Catherine
1df0fcdb9f Adding a second solution with a "for" loop (#35299)
* Adding a second solution with a "for" loop

+ adapted some texts to make the whole thing coherent
+ added some Useful links at the end of the article

* Update index.md

* Update index.md

* Update index.md

* Update index.md

* Update index.md

* Update index.md
2019-03-28 18:01:46 +05:30
Lipis
e84ae45008 Javascript -> JavaScript (English) (#35183)
* Javascript -> JavaScript (English)

* Update technical documentation page for required change

* Update use-class-syntax-to-define-a-constructor-function.english.md

* Update left-factorials.md
2019-03-28 14:05:41 +05:30
Zheng Fu
5dd27f88e4 simplifying the mathematical solution for Sum All Numbers in a Range (#35007)
* simplifying the mathematical solution

We don't need to sort the two number array, using Math.abs() we can get the count of the numbers in range and calculate the sum.

* Remove previously relevant info regarding sort()

* Clarify code for better readability

* change let to const according to review

* added missing semicolon
2019-03-27 22:26:59 +05:30
Randell Dawson
6f5610c4f3 fix: removed thanks and username references in english guide (#34946) 2019-03-27 22:25:49 +05:30
Pawel Koronkiewicz
8d95b8af5d Fixed a link at first Relevant Links section. (#35680) 2019-03-26 19:41:58 +05:30