* 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.
* 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
* 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
* [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
* 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
* [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
* 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
* [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
* Explained solution and added alternate
Explained why the solution works and added an alternate, less elegant solution for comparison.
* Removed last line per feedback
* 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