Commit Graph

97 Commits

Author SHA1 Message Date
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
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
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
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
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
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
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
6f5610c4f3 fix: removed thanks and username references in english guide (#34946) 2019-03-27 22:25:49 +05:30
8d95b8af5d Fixed a link at first Relevant Links section. (#35680) 2019-03-26 19:41:58 +05:30
772f4e1c40 [Guide] ES6: Compare var and let scopes. Fixes and enhancements. (#34636)
* [Guide] ES6: Compare var and let scopes. Fixes and enhancements.

- Remove phantom image
- Remove notes for contributors
- Change explanation and hints so they don't provide the solution too early.
- Links to markdown + 2 more resources

* Update guide/english/certifications/javascript-algorithms-and-data-structures/es6/compare-scopes-of-the-var-and-let-keywords/index.md

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

* Update guide/english/certifications/javascript-algorithms-and-data-structures/es6/compare-scopes-of-the-var-and-let-keywords/index.md

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

* Update guide/english/certifications/javascript-algorithms-and-data-structures/es6/compare-scopes-of-the-var-and-let-keywords/index.md

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

* Update guide/english/certifications/javascript-algorithms-and-data-structures/es6/compare-scopes-of-the-var-and-let-keywords/index.md

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

* Update guide/english/certifications/javascript-algorithms-and-data-structures/es6/compare-scopes-of-the-var-and-let-keywords/index.md

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

* fix: clarified the hint regarding variable i
2019-03-25 15:55:20 -07:00
d331ad1fcd Fix typos: JS intermediate algorithm guide (#34874)
* Typo: JS Algorithm missing-letters

* Fix typo: Broken link syntax

* Fix typo: missing bracket

* Remove duplicate link/info
2019-03-25 09:03:55 -07:00
2113b44b8a Correct typos in ES6 guide for getters/setters (#34951) 2019-03-23 15:19:15 -07:00
4bc1d74f2a Add a solution for Finders Keepers challenge (#35655)
* Add a solution for Finders Keepers challenge

* Update link to markdown

* fix: removed repl.it link

* fix: made this the Intermediate Solution

* fix: added correct Intermediate icon
2019-03-23 08:35:58 -07:00
933ef11154 Added solution using map() (#34701)
* Added solution using map()

* Update guide/english/certifications/javascript-algorithms-and-data-structures/basic-algorithm-scripting/find-the-longest-word-in-a-string/index.md

Co-Authored-By: vzla0094 <43974195+vzla0094@users.noreply.github.com>

* Update guide/english/certifications/javascript-algorithms-and-data-structures/basic-algorithm-scripting/find-the-longest-word-in-a-string/index.md

Co-Authored-By: vzla0094 <43974195+vzla0094@users.noreply.github.com>
2019-03-23 16:08:25 +05:30
ad5e844cb5 Add another solution (#35644) 2019-03-21 15:24:12 +05:30
6f28548668 Understand where an objects prototype comes from (#34643)
* Understand where an objects prototype comes from

- One hint and Solution added to index.md

* Add original seed code
2019-03-17 17:19:21 -07:00
4f71d9c8a7 Additional solution to Functional JS challenge (#29052)
* Added additional solution to the challenge

* Moved code explanation out of code block

* fix: moved sentences to same paragraph
2019-03-11 14:07:47 -07:00
97a74b68e8 [Guide] ES6: Prevent object mutation; fixes and enhancements (#34649)
* [Guide] ES6: Prevent object mutation; fixes and enhancements

- Remove phantom image
- Remove notes for contributors
- Change explanation and hints.
- Links to markdown

* Changed as requested

Changed titles as requested by @randelldawson. 
Note: I'm just used to [MDN](https://developer.mozilla.org/en-US/docs/MDN/Contribute/Guidelines/Writing_style_guide#Page_titles) and other language styles and though it was clearer. Is it ok now for this guide?

* fix: removed repl.it link
2019-03-10 11:07:48 -07:00
61e8a7c8bd add: content for this challenge (#31782) 2019-03-08 14:53:49 -08:00
41314f1364 add: content for challenge - match ending string patterns (#31774) 2019-03-08 14:50:49 -08:00
bdc7c22ee6 Update "Escape Sequences in Strings" stub (#34006)
* Update "Escape Sequences in Strings" stub

* fix: replaced backspace with word boundary
2019-03-08 14:47:58 -08:00
f0270b8439 [Guide] Basic JS: Inequality operator. Enhancements (#28501)
* Basic JS: Inequality operator. Enhancements

From [this PR on the old guide repo](https://github.com/freeCodeCamp/guide/pull/8651)
·Added exercise explanation, run code link, code explanation and resources.

* fixed: fixed typo
2019-03-08 14:42:20 -08:00
64d7eba61b [Guide] Basic JS: Greater than operator. Enhancements (#28510)
* [Guide] Basic JS: Greater than operator. Enhancements

From [this PR on the old guide repo](https://github.com/freeCodeCamp/guide/pull/8663).
· Added problem explanation, run code example, code explanation and resources.

* fix: removed repl.it link
2019-03-08 14:42:05 -08:00
baed72fd3d Explained solution and added alternate (#34718)
* Explained solution and added alternate

Explained why the solution works and added an alternate, less elegant solution for comparison.

* Removed last line per feedback
2019-03-08 14:41:08 -08:00
e0ce2301e6 Added Hint 2 & remove repl links (#34745) 2019-03-08 14:36:08 -08:00
9d09a12906 Use the javascript console to check the value... (#34644)
* Use the javascript console to check the value...

... of a variable.

- Solution added to index.md

* add full solution
2019-03-08 13:03:18 -08:00
c241ca7c49 added spelling hints (#29868)
* added spelling hints

* fix: changes pratfalls to mistakes
2019-03-07 14:17:12 -08:00
Tom
65c3188fd7 Fix/remove stubs on filled articles (#35506) 2019-03-06 01:57:17 +05:30
0b912a1220 fix: removed invalid Intermediate solution (#35504) 2019-03-05 09:37:01 -06:00
cf721281ca Add solution using RegExp (#34294) 2019-03-04 15:35:27 -08:00
b0c239ff53 Fix match single unspecified characters hint page (#34615) 2019-03-04 17:14:38 +05:30
f93e494f4a A basic solution to challenge sum-all-primes (#34249) 2019-03-04 16:06:05 +05:30
a412195e38 added extra solution to pig latin guide (#34465)
* added extra solution to pig latin guide

* Fixed repl.it link for Advanced solution

* Remove repl links

* Fix formatting issue
2019-03-03 17:53:46 -08:00
6f9cad3315 fix(guide): Change true and false to equal and not equal in ternary operator challenge (#35494) 2019-03-03 09:13:12 -08:00
cb3db952ee fix: update guide article for javascript conditional ternary operator (#35388) 2019-03-02 11:09:15 +05:30
b10256e853 Added formatting and explanation to Use the Conditional (Ternary) Operator (#34310) 2019-03-01 15:40:29 -08:00
5665222c70 Added a Basic Code Solution to "False Bouncer" challenge (#34858)
* Added a Basic Code Solution

I have also provided the Code Explanation and Relevant Links.

* Added 3 backticks to code

Co-Authored-By: merkur0 <ondramerkun123@gmail.com>

* Added 3 backticks here too

Co-Authored-By: merkur0 <ondramerkun123@gmail.com>

* Removed deprecated part of text

Co-Authored-By: merkur0 <ondramerkun123@gmail.com>

* fix: reformatted links and add closing backticks
2019-02-28 16:39:56 -08:00
fadea0cfe8 fix: Fix typo (#34779)
Changed "chack" for "check"
2019-02-28 12:41:55 -08:00
f687f804d8 Solution for Intermediate Algorithm Scripting: Pig Latin (#34446)
* Solution for Intermediate Algorithm Scripting: Pig Latin

Solution exclusively utilizes regex and string functions

Username: finally_static

* Properly format sublists

* sublists

* sublists

* sublist

* fix: added #2 to existing Intermediate solution

* Create a number for first intermediate solution
2019-02-27 19:49:00 -05:00
ae5e2398aa fix(guide): add intermediate solution to guide (#25485) 2019-02-27 19:03:53 -05:00
8db94edcab added documentation ur (#34631)
added documentation url for  String.fromCharCode() method
2019-02-27 13:53:22 -08:00
36bad642c2 Add variable declaration (#34702)
* Declare variable

* Update guide/english/certifications/javascript-algorithms-and-data-structures/functional-programming/use-the-map-method-to-extract-data-from-an-array/index.md

Co-Authored-By: ojeytonwilliams <ojeytonwilliams@gmail.com>
2019-02-22 14:03:34 -08:00
ce17020fed Added a missing opening bracket (#34447)
There was a missing opening bracket for the array `romans`
2019-02-14 19:45:57 -08:00
dcc1397c0c Fix "hint" code not working for the challenge: "Sum All Odd Fibonacci Numbers" (#28676)
* Fix code not passing on challenge tests

The code was not passing the challenge tests because we must sum only odd numbers. Cince we didn't provided an initial value for reduce, it would use the first element of the array, and if it was an odd number, it would skip our validation and add it to the final result.

[https://www.freecodecamp.org/forum/t/sum-all-odd-fibonacci-numbers-solution-not-passing-all-tests/236058](https://www.freecodecamp.org/forum/t/sum-all-odd-fibonacci-numbers-solution-not-passing-all-tests/236058)

* Same English fixed for Arabic

* Same English fix for Chinese

* Same English fix for Portuguese

* Same English fix for Russian

* Same English fix for Spanish
2019-02-12 15:54:53 -08:00
342d8657a5 guide: add code explanations to algorithm (#25816)
Added a code explanation for the beginner and intermediate code solutions of the 'convert-html-entities' algorithm, from the js certification
2019-02-11 06:17:34 -05:00
5fbdb753a7 added full explanation and solution for the challenge (#34364)
* Update index.md

* added second solution as suggested
2019-02-07 14:08:29 +01:00
fe085246c8 Use the Spread Operator to Evaluate Arrays In-Place, adding the proper solution. (Fixes #35022) (#35037)
* Adding proper solution for spread operation

Use the Spread Operator to Evaluate Arrays In-Place: adding the proper solution for the challenge

* made some more changes

* Fixed the Solution in es6 class constructor guide

Fixed the vegetable solution in Guide: Use class Syntax to Define a Constructor Function
2019-02-05 11:39:52 +03:00
6f04b00ea0 Fixed spelling errors, omissions, code typos (#34145)
Added missing regex tags at the end, fixed variable name, and erased an unnecessary space at the end of some of the test strings.
2019-01-25 23:42:35 -08:00
ca2d01a81c feat(curriculum): add grouping characters challenge and guide (#34875)
Added new challenge for mixed grouping of characters
2019-01-17 22:08:46 +01:00
0bc1b2fece Fix small typo (#28505)
'useres' to 'users'
2019-01-16 08:16:15 -06:00