Radi Totev
0a3690572c
fix: failing challenge test because of commented out code ( #45492 )
...
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.
2022-03-29 08:36:13 -07:00
Kristofer Koishigawa
bcc9beff1f
feat(curriculum): introduce let and const earlier ( #43133 )
...
* fix: move "Explore Differences Between..." to basic JS, update seed and tests
* fix: resequence "Declare String Variables"
* fix: move "Declare a Read-Only Variable..." to basic JS, update seed and tests
* fix: revert changes to non-English "Explore Differences Between..." test text
* fix: revert test strings, solutions, and seeds for non-English challenges
* fix: update "Declare String Variables" description
* fix: sync quotation marks in description and seed
* fix: modify note in "Declare a Read-Only..." challenge
* fix: update operator and compound assignment challenges
* fix: update string challenges
* fix: update array and array method challenges
* fix: update function and scope challenges, resequence slightly
* fix: "Word Blanks" solution
* fix: add spacing to seed
* fix: concatenating += challenge spacing
* fix: appending variables to strings spacing
* fix: find the length of a string spacing
* fix: removed instances of removedFromMyArray = 0
* fix: switch challenges
* fix: function argument and param spacing
* fix: update counting cards, object challenges, and record collection
* fix: finish rest of Basic JS section
* fix: introducing else statements solution
* fix: update spacing and wording
* fix: update wording for const challenge
* fix: update functional programming challenges
* fix: intermediate algorithms and cert challenges
* fix: revert some spacing and remove comments for fp challenge solutions
* feat: add notes with links to moved let and const challenges in first two es6 challenges
* fix: update es6 intro text
* Update curriculum/challenges/english/02-javascript-algorithms-and-data-structures/basic-javascript/concatenating-strings-with-the-plus-equals-operator.md
Co-authored-by: Shaun Hamilton <shauhami020@gmail.com>
* Update curriculum/challenges/english/02-javascript-algorithms-and-data-structures/basic-javascript/finding-a-remainder-in-javascript.md
Co-authored-by: Shaun Hamilton <shauhami020@gmail.com>
* Update curriculum/challenges/english/02-javascript-algorithms-and-data-structures/basic-javascript/global-scope-and-functions.md
Co-authored-by: Shaun Hamilton <shauhami020@gmail.com>
* Update curriculum/challenges/english/02-javascript-algorithms-and-data-structures/basic-javascript/iterate-through-an-array-with-a-for-loop.md
Co-authored-by: Shaun Hamilton <shauhami020@gmail.com>
* Update curriculum/challenges/english/02-javascript-algorithms-and-data-structures/basic-javascript/iterate-through-an-array-with-a-for-loop.md
Co-authored-by: Shaun Hamilton <shauhami020@gmail.com>
* Update curriculum/challenges/english/02-javascript-algorithms-and-data-structures/functional-programming/implement-map-on-a-prototype.md
Co-authored-by: Shaun Hamilton <shauhami020@gmail.com>
* Update curriculum/challenges/english/02-javascript-algorithms-and-data-structures/basic-javascript/declare-a-read-only-variable-with-the-const-keyword.md
Co-authored-by: Shaun Hamilton <shauhami020@gmail.com>
* fix: concatenating strings with plus operator seed
* fix: add comments back to Declare a Read-Only Variable... seed
* feat: add es6 to basic javascript redirect tests for let and const challenges
* fix: revert "Concatenating Strings with Plus Operator" seed
* fix: move test file to cypress/integration/learn/redirects, separate redirect tests
Co-authored-by: Shaun Hamilton <shauhami020@gmail.com>
2021-10-25 17:55:58 +01:00
prashantaghoshal
e4e74aa4f2
fix(curriculum): strip comments from code when testing ( #43597 )
...
* 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>
2021-09-29 11:13:41 +02:00
EhEhRon91
9aea61d0df
fix: conflicting info updated ( #43394 )
2021-09-10 15:40:39 +05:30
Evgeny Klimenchenko
db369fbed1
fix(client): remove JS comments from user code for tests ( #41873 )
...
* Removes comments in js challanges by default
* fix local-scope-and-functions test regex
* fix all languages
* revert language changes
* removed unnecessary removeJSComments from challenges
* fix challanges in other languages
* removed removeJSComments from all challanges
2021-04-28 10:18:54 -05:00
CoolBlueDesigns
fd5e6eebfb
fix(curriculum): add blank like to seed code
2021-03-22 16:18:15 +00:00
Andrew Cen
65cc800689
fix: add blank lines on empty seeds ( #41348 )
2021-03-03 13:14:28 -08:00
Nicholas Carrigan (he/him)
7117919d36
chore(learn): audit javascript algorithms and data structures ( #41092 )
...
* chore(learn): audit basic algorithm scripting
* chore(learn): audit basic data structures
* chore(learn): audit basic javascript
* chore(learn): audit debugging
* chore(learn): audit es6
* chore(learn): audit functional programming
* chore(learn): audit intermidate algorithms
* chore(learn): audit js projects
* chore(learn): audit object oriented programming
* chore(learn): audit regex
* fix(learn): remove stray .
* fix(learn): string to code
* fix(learn): missed some
* fix(learn): clarify strings
Based on Randy's feedback, clarifies string instances where quotes
were removed in favour of back ticks.
* fix: apply suggestions - thanks Randy! :)
Co-authored-by: Randell Dawson <5313213+RandellDawson@users.noreply.github.com>
* fix: non-suggestion comments
* chore(learn): remove comments from codes
Removes the comments from the description and instruction code
blocks to ensure that all relevant information is translatable.
* fix: Apply suggestions from code review
Co-authored-by: Shaun Hamilton <51722130+ShaunSHamilton@users.noreply.github.com>
* fix: revert crowdin fix
* Update curriculum/challenges/english/02-javascript-algorithms-and-data-structures/basic-algorithm-scripting/mutations.md
Co-authored-by: Randell Dawson <5313213+RandellDawson@users.noreply.github.com>
* fix: Apply suggestions from code review
Co-authored-by: Shaun Hamilton <51722130+ShaunSHamilton@users.noreply.github.com>
* Update curriculum/challenges/english/02-javascript-algorithms-and-data-structures/es6/use-destructuring-assignment-to-assign-variables-from-arrays.md
Co-authored-by: Shaun Hamilton <51722130+ShaunSHamilton@users.noreply.github.com>
* fix: Apply suggestions from code review
Co-authored-by: Oliver Eyton-Williams <ojeytonwilliams@gmail.com>
Co-authored-by: Shaun Hamilton <51722130+ShaunSHamilton@users.noreply.github.com>
* chore: change voice
* fix: Christopher Nolan
* fix: expressions would evaluate
* fix: will -> would
* Update curriculum/challenges/english/02-javascript-algorithms-and-data-structures/object-oriented-programming/add-methods-after-inheritance.md
Co-authored-by: Randell Dawson <5313213+RandellDawson@users.noreply.github.com>
* fix: to work to push
* Update curriculum/challenges/english/02-javascript-algorithms-and-data-structures/basic-javascript/iterate-with-javascript-for-loops.md
Co-authored-by: Shaun Hamilton <51722130+ShaunSHamilton@users.noreply.github.com>
* Update curriculum/challenges/english/02-javascript-algorithms-and-data-structures/object-oriented-programming/add-methods-after-inheritance.md
Co-authored-by: Randell Dawson <5313213+RandellDawson@users.noreply.github.com>
Co-authored-by: Randell Dawson <5313213+RandellDawson@users.noreply.github.com>
Co-authored-by: Shaun Hamilton <51722130+ShaunSHamilton@users.noreply.github.com>
Co-authored-by: Oliver Eyton-Williams <ojeytonwilliams@gmail.com>
2021-03-02 17:12:12 -07:00
gikf
d41630ee19
fix(learn): clarify test description for Use Rest Parameter with Function Parameter ( #40725 )
...
* fix: clarify test description
* fix: improve wording regarding rest parameters syntax
Co-authored-by: Randell Dawson <5313213+RandellDawson@users.noreply.github.com>
* fix: improve with better sounding wording
Co-authored-by: Nicholas Carrigan (he/him) <nhcarrigan@gmail.com>
Co-authored-by: Randell Dawson <5313213+RandellDawson@users.noreply.github.com>
Co-authored-by: Nicholas Carrigan (he/him) <nhcarrigan@gmail.com>
2021-01-24 08:30:13 -08:00
Oliver Eyton-Williams
ee1e8abd87
feat(curriculum): restore seed + solution to Chinese ( #40683 )
...
* feat(tools): add seed/solution restore script
* chore(curriculum): remove empty sections' markers
* chore(curriculum): add seed + solution to Chinese
* chore: remove old formatter
* fix: update getChallenges
parse translated challenges separately, without reference to the source
* chore(curriculum): add dashedName to English
* chore(curriculum): add dashedName to Chinese
* refactor: remove unused challenge property 'name'
* fix: relax dashedName requirement
* fix: stray tag
Remove stray `pre` tag from challenge file.
Signed-off-by: nhcarrigan <nhcarrigan@gmail.com>
Co-authored-by: nhcarrigan <nhcarrigan@gmail.com>
2021-01-12 19:31:00 -07:00
Oliver Eyton-Williams
0bd52f8bd1
Feat: add new Markdown parser ( #39800 )
...
and change all the challenges to new `md` format.
2020-11-27 10:02:05 -08:00
Ilenia
f294d9cacc
fix(learn): removed use strict from various challenges ( #40321 )
2020-11-25 15:59:04 -08:00
Timo Köhler
7ce8c58709
Put value into quotes ( #40172 )
...
* Put value into quotes
It can be missunderstanding that "value" is a string!
* fix: remove quotes from inside code tags
Co-authored-by: Nicholas Carrigan (he/him) <nhcarrigan@gmail.com>
Co-authored-by: Randell Dawson <5313213+RandellDawson@users.noreply.github.com>
Co-authored-by: Nicholas Carrigan (he/him) <nhcarrigan@gmail.com>
2020-11-25 16:32:14 -06:00
Nicholas Carrigan (he/him)
49f6875db5
fix(learn): ES6 Getters + Setters tests ( #40238 )
...
* Strengthen tests
Signed-off-by: nhcarrigan <nhcarrigan@gmail.com>
* Improve verbiage
Signed-off-by: nhcarrigan <nhcarrigan@gmail.com>
* Add second check to setter test
Signed-off-by: nhcarrigan <nhcarrigan@gmail.com>
2020-11-25 14:22:44 -08:00
Shai
8ceae38730
fix(learn): modified usage of words from argument to parameter based on the title ( #40130 )
2020-10-31 19:59:43 +01:00
nick-w-nick
10d3126383
fix(learn): correct minor grammar mistake ( #39915 )
2020-10-13 12:14:49 +01:00
Oliver Eyton-Williams
2b9e38a17b
fix: replace .english.md extension with .md
2020-09-29 22:09:04 +02:00
Walter Palagi
104a8068e3
fix(learn): in ES6 spread operator challenge test for arr2 length > 0 ( #39680 )
...
* fix(learn): in ES6 spread operator challenge test for arr2 length > 0 too
Fixes #39662
* Accept correction
Co-authored-by: Nicholas Carrigan <nhcarrigan@gmail.com>
Co-authored-by: Nicholas Carrigan <nhcarrigan@gmail.com>
2020-09-24 16:14:44 -07:00
Joseph Mawa
d5000b5d0f
Removed note about promise chaining as suggested in issue #39487 ( #39609 )
2020-09-18 10:30:37 -05:00
Hassaan Pasha
80438cac3e
feat(client, learn): add helper functions for common validation operations ( #38605 )
...
Co-authored-by: Randell Dawson <5313213+RandellDawson@users.noreply.github.com>
2020-09-17 19:38:01 +05:30
Lasse Jørgensen
2743ac2e84
fix(challenge): update variable names, assign empty array, update solution code, remove "use strict" ( #39525 )
...
* fix(challenge): update variable names, assign empty array, update solution code, remove "use strict"
* fix(challenge): update solution code
* fix:(challenge) update instructions and variable name
* fix:(challenge) update instructions
2020-09-09 19:58:27 -05:00
Mrugesh Mohapatra
c23c4ef8e4
fix: negative sentiment → neutral language ( #39522 )
...
The existing terminology carries negative sentiment that can be
interpreted in a racial or sense. Updating the name to have no
potential for such a connection.
Co-authored-by: Justin Rogers <justrog@gmail.com>
2020-09-07 11:04:44 +05:30
Oliver Eyton-Williams
bd68b70f3d
Feat: hide blocks not challenges ( #39504 )
...
* fix: remove isHidden flag from frontmatter
* fix: add isUpcomingChange
Co-authored-by: Ahmad Abdolsaheb <ahmad.abdolsaheb@gmail.com>
* feat: hide blocks not challenges
Co-authored-by: Ahmad Abdolsaheb <ahmad.abdolsaheb@gmail.com>
Co-authored-by: Ahmad Abdolsaheb <ahmad.abdolsaheb@gmail.com>
2020-09-03 15:07:40 -07:00
Ishu Singhal
56469d1c5c
fix(learn): update tests to allow more valid solutions ( #39054 )
...
* fix(curriculum): updated tests: fixed #39049
It won't pass something like this now:
const myConcat = () => {};
console.log(3);
* fix: add suggested change
Co-authored-by: moT01 <20648924+moT01@users.noreply.github.com>
2020-09-03 15:28:35 +01:00
bhagerty
046137891e
fix(learn): clarify how object names are associated with destructured fields ( #39485 )
...
* Clarify how object names are associated with destructured fields
* fix: make description more concise
* Update curriculum/challenges/english/02-javascript-algorithms-and-data-structures/es6/use-destructuring-assignment-to-pass-an-object-as-a-functions-parameters.english.md
Co-authored-by: moT01 <20648924+moT01@users.noreply.github.com>
Co-authored-by: Manish Giri <manish.giri.me@gmail.com>
2020-09-02 19:06:27 +01:00
Tom
9cd4b93601
fix(learn): getter setter instructions ( #39512 )
...
* Update use-getters-and-setters-to-control-access-to-an-object.english.md
* fix: revert changes, keep example
Co-authored-by: Daniel Sing <danielsingsong@gmail.com>
2020-09-02 18:07:17 +01:00
Oliver Eyton-Williams
f1c9b08cf3
fix(curriculum): add isHidden: false to challenges
...
This includes certificates (where it does nothing), but does not
include any translations.
2020-05-25 16:25:19 +05:30
Josh Queen
23ca15241c
fix:(curriculum): Moved code tag to include new keyword ( #38780 )
...
* Moved code tag to include new keyword
The new keyword hasn't been explained in the curriculum yet, so have moved the <code> tag to include the new keyword to give a prompt that it needs to be used in the solution.
* Update curriculum/challenges/english/02-javascript-algorithms-and-data-structures/es6/use-arrow-functions-to-write-concise-anonymous-functions.english.md
Added comma.
Co-authored-by: Lasse Jørgensen <28780271+lasjorg@users.noreply.github.com>
2020-05-20 10:09:35 +02:00
Paul Gamble
54d59ffc37
Fix/curriculum en es6 complete a promise - modified test messages to be more clearer ( #38836 )
...
* Changed tests messages to indicate string
* minor tweak with wording of message
Co-authored-by: Oliver Eyton-Williams <ojeytonwilliams@gmail.com>
2020-05-19 12:44:59 +02:00
Enock Kasaadha
06d97ac813
fix(curriculum/learn): moved the comment one line below. ( #38422 )
...
moved the comment ` //add code above this line` in the text editor of [this challenge](https://www.freecodecamp.org/learn/javascript-algorithms-and-data-structures/es6/use--to-import-everything-from-a-file ) one line below so that it makes meaning.
2020-03-26 20:01:58 -05:00
Randell Dawson
e0e6334628
fix(curriculum): Consolidated comments for JavaScript Algorithms and Data Structures challenges - part 3 of 4 ( #38264 )
...
* fix: remove example code from challenge seed
* fix: remove declaration from solution
* fix: added sum variable back in
* fix: reverted description back to original version
* fix: added examples to description section
* fix: added complete sentence
Co-Authored-By: Oliver Eyton-Williams <ojeytonwilliams@gmail.com>
* fix: corrected typo
Co-Authored-By: Manish Giri <manish.giri.me@gmail.com>
* fix: reverted to original desc with formatted code
* fix: removed unnecessary code example from description section
Co-Authored-By: Oliver Eyton-Williams <ojeytonwilliams@gmail.com>
* fix: failiing test on iterate through array with for loop
* fix: changed to Only change this line
Co-Authored-By: Manish Giri <manish.giri.me@gmail.com>
Co-authored-by: Oliver Eyton-Williams <ojeytonwilliams@gmail.com>
Co-authored-by: Manish Giri <manish.giri.me@gmail.com>
Co-authored-by: moT01 <tmondloch01@gmail.com>
2020-03-25 16:07:13 +01:00
Randell Dawson
50f15886b8
fix(curriculum): Strip comments from user code for Use Destructuring Assignment to Extract Values from Objects challenge ( #38213 )
...
* fix: strip user code to improve tests
* fix: removed closing section tag messing up tests
2020-03-25 13:28:17 +01:00
Randell Dawson
9252f96566
fix(curriculum): Consolidated comments for JavaScript Algorithms and Data Structures challenges - part 4 of 4 ( #38267 )
...
* fix: consolidate comments
Co-authored-by: Parth Parth <34807532+thecodingaviator@users.noreply.github.com>
2020-03-08 15:46:28 +01:00
Tom
17a55c6e18
fix(curriculum): Consolidated comments for JavaScript Algorithms and Data Structures challenges - part 1 of 4 ( #38258 )
...
* fix: consolidate/remove comments
* fix: remove => from comment
* fix: reverted changes to add same changes to another PR
* fix: removed 'the' from sentence
Co-Authored-By: Oliver Eyton-Williams <ojeytonwilliams@gmail.com>
* fix: removed 'the' from the sentence
Co-Authored-By: Oliver Eyton-Williams <ojeytonwilliams@gmail.com>
Co-authored-by: Oliver Eyton-Williams <ojeytonwilliams@gmail.com>
2020-03-04 13:08:54 -06:00
Randell Dawson
6a7a7e6d7d
fix(curriculum): Consolidated comments for JavaScript Algorithms and Data Structures challenges - part 2 of 4 ( #38259 )
2020-03-03 10:18:30 +03:00
Josh Soref
004b99bf8f
chore: fix typos in spelling ( #38100 )
...
* spelling: accidentally
* spelling: announce
* spelling: assembly
* spelling: avoid
* spelling: backend
* spelling: because
* spelling: claimed
* spelling: candidate
* spelling: certification
* spelling: certified
* spelling: challenge
* spelling: circular
* spelling: it isn't
* spelling: coins
* spelling: combination
* spelling: compliant
* spelling: containers
* spelling: concise
* spelling: deprecated
* spelling: development
* spelling: donor
* spelling: error
* spelling: everything
* spelling: exceed
* spelling: exist
* spelling: falsy
* spelling: faulty
* spelling: forward
* spelling: handle
* spelling: indicates
* spelling: initial
* spelling: integers
* spelling: issealed
* spelling: javascript
* spelling: length
* spelling: maximum
* spelling: minimum
* spelling: mutable
* spelling: notifier
* spelling: coordinate
* spelling: passport
* spelling: perform
* spelling: permuter
* spelling: placeholder
* spelling: progressively
* spelling: semantic
* spelling: submission
* spelling: submit
* spelling: translations
* spelling: turquoise
* spelling: visualization
* spelling: without
* spelling: registration
* spelling: representation
2020-02-08 23:59:10 +05:30
Perrottarichard
bc470325d0
Update use-destructuring-assignment-with-the-rest-parameter-to-reassign-array-elements.english.md ( #38092 )
...
I added 'the' to correct the English grammar and hence improve the readability of the instructions.
2020-01-21 08:25:10 -06:00
ML
d824c77012
Move the comment on line 71 to its own line ( #38036 )
...
* Move the comment on line 71 to its own line
The comment "use function argument destructuring" was on the same line as some code, and when displayed as a challenge it returned to a new line and was not commented out.
* Update line 71 comment per @manish-giri suggestion
Move the comment "use function argument destructuring" to above the "change code below this line" comment for clarity. Based on conversation in this pull request https://github.com/freeCodeCamp/freeCodeCamp/pull/38036
2020-01-15 08:17:34 +05:30
Randell Dawson
a70e15c0a7
fix: allow-space-in-destructuring-regex ( #37997 )
2020-01-07 17:22:15 +01:00
Randell Dawson
2c15bcbb43
fix(curriculum): changed test text to use should for JavaScript Algorithms and Data Structures ( #37761 )
...
* fix: corrected typo
Co-Authored-By: Tom <20648924+moT01@users.noreply.github.com>
2019-11-27 11:57:38 +01:00
Waldo Luis Ribeiro
deb24f77b6
fix(curriculum): English editing ( #37814 )
...
* fix(curriculum): English editing
* fix(curriculum): English editing
* Update curriculum/challenges/english/02-javascript-algorithms-and-data-structures/es6/use-class-syntax-to-define-a-constructor-function.english.md
Co-Authored-By: Manish Giri <manish.giri.me@gmail.com>
* Update use-class-syntax-to-define-a-constructor-function.english.md
2019-11-24 16:38:30 -05:00
Randell Dawson
dc1b59070e
fix: use arrow function syntax ( #37818 )
2019-11-24 02:37:11 -05:00
Waldo Luis Ribeiro
0c22313760
fix(curriculum): English editing ( #37815 )
...
* fix(curriculum): English editing
* Update curriculum/challenges/english/02-javascript-algorithms-and-data-structures/es6/use-getters-and-setters-to-control-access-to-an-object.english.md
Co-Authored-By: Manish Giri <manish.giri.me@gmail.com>
2019-11-23 18:37:36 -05:00
Waldo Luis Ribeiro
70f736fe07
fix(curriculum): English editing ( #37816 )
2019-11-23 17:28:56 -05:00
Louisa
2287d73b4f
fix missing closing brace and bracket for promise ( #37474 )
...
There was a missing closing brace, bracket and semi-colon for the constructor new Promise in its definition
2019-11-07 19:24:54 +01:00
shrobbins
a13bb1b96f
fix: missing semi-colon ( #37454 )
2019-10-21 20:50:51 -04:00
Ent Wickler
d08f009bd1
fix(curriculum): Add tests for setter, getter and setting a temperature (es6 tests) ( #36620 )
...
* add testing for setter, getter and setting a temperature according to some of feedbacks into the issues 17403
* bugfix: temperature is not a function
2019-09-23 17:13:32 +02:00
Lauren Van Sloun
4507a6b254
Minor grammar fixes ( #36643 )
...
* Minor grammar fix
2019-08-20 14:36:22 +01:00
enrider
76bd5f4fc3
Issue #36564 update regex for spread operator ( #36565 )
...
* Issue #36564 update regex for spread operator
* Update curriculum/challenges/english/02-javascript-algorithms-and-data-structures/es6/use-the-spread-operator-to-evaluate-arrays-in-place.english.md
Co-Authored-By: Randell Dawson <5313213+RandellDawson@users.noreply.github.com>
2019-08-06 14:56:48 -07:00
Randell Dawson
568f00e02a
fix(curriculum): Added forumTopicId to remaining 1200 challeng… ( #36558 )
2019-08-05 22:14:37 +05:30