Commit Graph

32 Commits

Author SHA1 Message Date
7a37788ea1 add beginner solution to pig latin (#35572) 2019-03-29 22:48:54 +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
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
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
ad5e844cb5 Add another solution (#35644) 2019-03-21 15:24:12 +05:30
0b912a1220 fix: removed invalid Intermediate solution (#35504) 2019-03-05 09:37:01 -06:00
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
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
8db94edcab added documentation ur (#34631)
added documentation url for  String.fromCharCode() method
2019-02-27 13:53:22 -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
722d136858 Fix typo: add 'y' to truthy (#27517) 2019-01-15 17:23:05 -06:00
9e5e3dcf9b Fix order of hint paragraph 3 (#27514) 2019-01-15 17:22:35 -06:00
6e9a09b013 Updated missing link for JS regex resources (#34306)
JS regex resources link above advanced solution wasn't referencing any webpage. Updated it to link to MDN's regular expressions guide.
2019-01-15 17:18:17 -06:00
2262ab56b4 Updated stub article (#29494) 2019-01-15 17:16:40 -06:00
120f418c41 Fix typos: remove 's' from callback (#27512) 2019-01-15 17:13:12 -06:00
ac9a18a7f7 Update index.md (#34720) 2018-12-21 13:52:19 -08:00
d1d6c08215 docs: grammar and clarity updates (#34567)
* docs: grammar and clarity updates

* docs: clarity revision per request
2018-12-05 18:22:42 -08:00
62ba0777e0 Adding short and clear solution 2018-12-02 00:23:24 +09:00
d16c9b58fd Improved Advanced Code Solution (#22898)
This way it is less confusing + people should be aware of slice default arguments
2018-11-28 19:01:42 -07:00
9fb1d9f49c Update index.md (#22622)
more easy to understand and short than all other solutions
2018-11-25 10:53:00 -07:00
af13067197 Fixed Typo: Added missing indefinite article 'a' (#25605) 2018-11-14 20:49:05 +05:30
0f5c28cfdf fix: update intermediate solution (#34263)
Intermediate code solution doesn't pass tests when the greater number is even because it's the starting acc without passing the reducer function that avoids even number.
Proposed solution: reverse the array before reduce.
2018-11-13 12:54:50 +05:30
3920b7c4ce Corrected capitalization, corrected to American spellings and typos (#30685)
* Translate challenge subtitles and example challenge text to Spanish

* Corrected errors in syntax and punctuation

* Multiple corrections of it/s to its plus other grammar corrections

* Correction and added paragraph to CSS Flex article

* Corrected my own typo

* Corrected capitalization, American spellings and typos
2018-11-07 10:34:13 -05:00
360e3fffbd Fix misplaced anchor tag (#20346) 2018-10-30 19:01:01 -07:00
5c2bd53d5c fixes the Advanced Code Solution to make it work when run tests in the Convert HTML Entities exercise (#24930)
* fix in the Advanced Code Solution to make it work when run tests

* making htmlEntities a const to fix the example
2018-10-25 13:41:36 -07:00
f0eb384b10 Smallest Common Multiple – Optimized Advanced Solution (#19572)
* Optimized advanced solution

Made 2 minor improvement to the advanced solution:

1. The original advanced solution used `Math.max` and `Math.min` against the supplied array, this causes the values in the supplied array to be compared twice. If we use sort instead, the values are only compared once and we can target the max and min values using an index. This is more efficient.

2. The original solution caused `lcm(min, min + 1)` to be evaluated twice. By incrementing `min` the first time we run `lcm` we avoid this duplication and also by taking advantage of the prefix increment operator ++ in the while loop, we trim a line.

* Fixed extra spaces in code block

* Incorporated code feedback from #19572

Made the following changes to the advanced code solution:

- Converted helper functions to arrow function constants
- Simplified comments
- Used destructuring and `sort` for `min` and `max`

* Fixed spacing.
2018-10-18 10:08:45 -07:00
da0df12ab7 fix(guide): simplify directory structure 2018-10-16 21:32:40 +05:30