id: 587d7b87367417b2b2512b43
title: Use Arrow Functions to Write Concise Anonymous Functions
forumTopicId: 301211
dashedName: use-arrow-functions-to-write-concise-anonymous-functions
User code tests fail when seed code is left and commented out.
* chore(curriculum): update regex in use-braket-notation-* tests
Update regex used in tests, so that tests are more forgiving and spaces tolerant.
* Allow for spaces within brackets
* Local scope and functions: Make the example less confusing
* Update curriculum/challenges/english/02-javascript-algorithms-and-data-structures/basic-javascript/local-scope-and-functions.md
Co-authored-by: Krzysztof G. <60067306+gikf@users.noreply.github.com>
* Fix bug in typeof lesson in debugging javascript
* Update curriculum/challenges/english/02-javascript-algorithms-and-data-structures/debugging/use-typeof-to-check-the-type-of-a-variable.md
Co-authored-by: Ilenia <nethleen@gmail.com>
Co-authored-by: Krzysztof G. <60067306+gikf@users.noreply.github.com>
Co-authored-by: Ilenia <nethleen@gmail.com>
* Local scope and functions: Make the example less confusing
* Update curriculum/challenges/english/02-javascript-algorithms-and-data-structures/basic-javascript/local-scope-and-functions.md
Co-authored-by: Krzysztof G. <60067306+gikf@users.noreply.github.com>
Co-authored-by: Krzysztof G. <60067306+gikf@users.noreply.github.com>
* fix: typo in javascript-algorithms-and-data-structures > object-oriented-programming > understand-own-properties
* revert all the files with translations
* fix last commit error and remove changes from translated files
* fix (Curriculum) Added a log statement
Added a log statement to the seed's content, referencing the function countOnline with a sample object as argument.
The user should be able to see the result of the function printed out on the console as soon as it is ran, and it should be easier to understand what is being outputed by the function in this challenge.
* Added examper users object
* fix comments for which place to edit
solution should be placed in this line, previous comments was missleading.
as discussed in https://github.com/freeCodeCamp/freeCodeCamp/issues/44049
* shorter comments
clear of not needed ward Only
* Update curriculum/challenges/english/02-javascript-algorithms-and-data-structures/basic-javascript/declare-a-read-only-variable-with-the-const-keyword.md
letter fixes
Co-authored-by: Ilenia <nethleen@gmail.com>
* fix for spelling of Change
only letter change
* fix for italian language
all other languages
* revert
revert of changes that will be done in other place
* revert
Co-authored-by: Ilenia <nethleen@gmail.com>
* fix: add test to check if variable is edited
* Update curriculum/challenges/english/02-javascript-algorithms-and-data-structures/regular-expressions/remove-whitespace-from-start-and-end.md
Co-authored-by: Nicholas Carrigan (he/him) <nhcarrigan@gmail.com>
Co-authored-by: Nicholas Carrigan (he/him) <nhcarrigan@gmail.com>
* fix: update ES6-Compare Scopes of var and let
Fixes Issue: Adding a comment causes a valid answer to be wrong in ES6 > Compare Scopes of the var and let keywords
Fixes: #43578
* Update curriculum/challenges/english/02-javascript-algorithms-and-data-structures/es6/compare-scopes-of-the-var-and-let-keywords.md
Co-authored-by: Krzysztof <60067306+gikf@users.noreply.github.com>
* Update curriculum/challenges/english/02-javascript-algorithms-and-data-structures/es6/compare-scopes-of-the-var-and-let-keywords.md
Co-authored-by: Krzysztof <60067306+gikf@users.noreply.github.com>
* Update curriculum/challenges/english/02-javascript-algorithms-and-data-structures/es6/compare-scopes-of-the-var-and-let-keywords.md
Co-authored-by: Krzysztof <60067306+gikf@users.noreply.github.com>
Co-authored-by: Krzysztof <60067306+gikf@users.noreply.github.com>
Suggesting the removal of "-" on line 29 in the description, as the comma before "such" is sufficient to separate the examples from the rest of the sentence.
* (fix)Sort an array alphabetically using the sort Method - Array is returned from the function #43417
* (mod)Curriculum - Adding explicit instructions so that function will return a sorted array #43417
* (fix)Curriculum - Correcting grammetic error in instructions #43417
* mod: updated transaltion message #43417
* fix: Curriculum - Updated grammatical error in instructions #43417
Co-authored-by: Vama Mehta <vama.mehta@inqubit.in>
* sheesh
* added markdown formatting to challenge
* added formatting to keep space in concatenating strings with the plus equals operator
* Delete husky.sh
* added back in italian dictionary
* removed code formatting
* updating text formatting for challenges, removed space and added instruction
Co-authored-by: Pat Lehmann <patrick.lehmann@homes.com>
* fix: added additional matrix1 test case for different arguments to fix hard code issue #43050
* fix: reduced additional test case to only 1 with zeroArray(4,3) and added to all languages
* Revert "fix: reduced additional test case to only 1 with zeroArray(4,3) and added to all languages"
This reverts commit bbbb1c7cbc.
* fix: only simplify and reduce to 1 test case using zeroArray(4,3), reverted internationalization
* fix: removed unused matrix1 from seed and solution
* update: for better wording of the added test case suggested
Co-authored-by: gikf <60067306+gikf@users.noreply.github.com>
Co-authored-by: gikf <60067306+gikf@users.noreply.github.com>
* Update referenced object keys for clarity
Because each movie object has both `Rated` and `imdbRating` key/value pairs, simply referencing `rating` could be confusing to campers. IMO explicitly referencing the keys by name (`Title` and `imdbRating`) removes ambiguity in the non-important part of this challenge and helps campers focus on learning about `.map()`.
* other references and tests
* Update curriculum/challenges/english/02-javascript-algorithms-and-data-structures/functional-programming/use-the-map-method-to-extract-data-from-an-array.md
* reverse previous changes
* Update curriculum/challenges/english/02-javascript-algorithms-and-data-structures/functional-programming/use-the-map-method-to-extract-data-from-an-array.md
Co-authored-by: Shaun Hamilton <shauhami020@gmail.com>
Co-authored-by: Shaun Hamilton <shauhami020@gmail.com>