Commit Graph

30 Commits (6978178d4fb9b05e9d89a9222ee64a313b52fbe7)

Author SHA1 Message Date
Fred Battle cb2f76e1b2 fix: update guide hint to properly declare regex (#34625) 2018-12-12 15:48:22 -08:00
Gregory Gubarev a3c185af2c [Guide] Added Intermediate Code Solution - Use Multiple Conditional (Ternary) Operators (#25851)
Added Intermediate Code Solution - Use Multiple Conditional (Ternary) Operators
2018-12-06 13:35:22 -06:00
Steve Gallant 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
VitBu 62ba0777e0 Adding short and clear solution 2018-12-02 00:23:24 +09:00
VitBu 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
VitBu 9fb1d9f49c Update index.md (#22622)
more easy to understand and short than all other solutions
2018-11-25 10:53:00 -07:00
Mateusz Konieczny 271b2c3434 Add new solution version that directly returns (#34427)
In this case (that is quite typical) more complicated
language features are not necessary.
2018-11-22 16:14:40 -05:00
Adrian Skar 82459dad13 [Guide] Basic JS: Ternary operator. Fixes and enhancements (#22633)
1. Fix code solution (it used the assignment operator to compare _a_ and _b_ instead of the comparison one; which wouldn't pass the test at the exercise page).
2. Add problem explanation, hint, code explanation, run example and resources
2018-11-22 00:36:11 +07:00
coderlyn 1ba28c9af6 Add new hint to break up problem into small chunks (#21881)
* Add new hint to break up problem into small chunks

* added block code syntax
2018-11-17 10:49:53 -07:00
Kelly Downes af13067197 Fixed Typo: Added missing indefinite article 'a' (#25605) 2018-11-14 20:49:05 +05:30
Kiko Almela 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
Nemanja Jeremic f0ce844ca0 updated solution styled as code block (#34266) 2018-11-13 12:54:33 +05:30
Nemanja Jeremic aa050465e9 Corrected minor code errors (#34260) 2018-11-12 12:42:31 +05:30
AlexandreLeFou 5f03e0f036 Added a solution/fixed stub :) (#34251)
* Added a solution/fixed stub :)

I have added for the most known browser what keyboard combinations/shortcuts you can use in order to open up from Web dev tools the console and run the same code as we do in FCC camp!

Certifications/JavaScript Algorithms and Data Structures/Debugging/Understanding the Differences Between the Freecodecamp and Browser Console

* Deleted a link provided

I have previously provided a link upon which I have added the Macintosh shortcuts. 
I have deleted all the Mac set of keybords as I can't check them in my pc and it is considered plagiarism

* Fixed text 

added more instructions

* Added solution

updated with solution and JS code for solution+as well as hint

* deleted white space in solution

* added frontmatter

fixed Travis problem

* Update index.md
2018-11-10 10:30:30 +05:30
S.Hale 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
AlexandreLeFou ce33b6c650 Added a solution/fixed stub :) (#34198)
Added a solution to the stub regardingn Javascript Algorithms And Data Structures Certification\Regular Expressions
2018-11-06 22:48:58 -05:00
AlexandreLeFou 2910a9e6ac Added a solution-fixed stub :) (#34199)
Added a solution to the stub regarding Javascript Algorithms And Data Structures Certification\Regular Expressions
+ added a bit of a hint in the beginning to spice things up ;)
2018-11-06 22:48:01 -05:00
Melvin Viana 99bd2c1dbb Update "Finders-keepers" guide index.md (#34217)
* Update index.md

My proposed advanced solution

* Update index.md
2018-11-06 22:46:44 -05:00
Adrian Skar 72fe1c49e8 [Guide] ES6: var vs. let. Fixes and enhancements (#34221)
· Remove phantom image (purpose?)
· Remove unused anchor tag
· Delete notes for contributors
· Links to MD code + descriptions
2018-11-06 21:53:38 -05:00
Sara T 9900699d0b Fix equality expression in ternary operator (#34225)
The equality comparison expression (==) should be used instead of assignment (=)
2018-11-06 21:44:51 -05:00
akashnigam 7d9b587191 fix: update guide article to truncate a string in javascript (#34216) (#34228) 2018-11-06 17:36:03 -05:00
Vel Kumric bc879e14d2 Feat/add guide article for javascript (#34007) 2018-11-04 11:35:54 +05:30
Kaiguang Li 360e3fffbd Fix misplaced anchor tag (#20346) 2018-10-30 19:01:01 -07:00
Pablo Rubianes 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
Adrian Skar 816036dba6 [Guide] Basic JS: parseInt using radix. Replace stub with guide (#22456)
Guide for [Basic JavaScript: Use the parseInt Function with a Radix](https://learn.freecodecamp.org/javascript-algorithms-and-data-structures/basic-javascript/use-the-parseint-function-with-a-radix)
2018-10-24 14:10:49 +05:30
Gregory Gubarev 47bff1626b Javascript: add solution to hint Match Characters that Occur Zero or … (#19231) 2018-10-21 15:56:48 +09:00
Bouncey 6d511c558a fix(guide): Fix all frontmatter 2018-10-19 16:28:34 +01:00
Bill Sourour 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
Adrian Skar a01cc367e0 [Guide] Basic JS: Random numbers within range. Enhancements (#19539)
* [Guide] Basic JS: Random numbers within range. Enhancements

Added code solution, explanation, resources and other minor fixes.

* Additional fix; list.

* update: created ordered list of calculation
2018-10-17 09:31:27 -07:00
Mrugesh Mohapatra da0df12ab7 fix(guide): simplify directory structure 2018-10-16 21:32:40 +05:30