Commit Graph

483 Commits (0e611f321e675a88382494e6cff6f6d1c54211f4)

Author SHA1 Message Date
Valeriy 99cf6090bd fix(curriculum): getUserInput is not defined 2019-02-13 22:01:38 +00:00
Kirill Malev 661d10412f Added solution to remove-whitespace-from-start-and-end.english.md (#35145)
* Update remove-whitespace-from-start-and-end.english.md

* includes whole solution now
2019-02-12 09:34:52 -08:00
Aashis kumar b2e514d39f A better solution to finders-keepers.english.md (#34759)
* Update finders-keepers.english.md

A better approach to finder's keepers problem

* A better appoach to solve finders-keepers (JS)

Fixed travis bug

* fix: indented solution code
2019-02-10 20:13:48 -08:00
lasjorg 9341aadb5b Fix/remove property references and update tests (#35109)
* fix(challenges): Update challenge text and assertion test

* fix(challenges): update assert test regex

* fix(challenges): update regex, fix inline comment in code example

* fix: corrected regex
2019-02-09 00:47:53 -05:00
Julien Galibois Sauvageau e8b7b2eb6f Fixed typo (#34848)
Original wording: getHachedEggCount
New wording: getHatchedEggCount
2019-02-08 13:59:04 -08:00
Aditya 85eca8ef36 [fix]: Object Oriented Programming: Inherit Behaviors from a Supertype (#35063)
* fix: revert semicolon check

* fix: test name
2019-02-06 08:23:47 +03:00
Dom Coleman 9a4e13954a Tests for OOP: Inherit Behaviors from a Supertype (#34938)
* Tests for OOP: Inherit Behaviors from a Supertype

Fixes issue #34905

* fix: make test inclusive
2019-02-05 20:44:53 +03:00
Luane f2c3d635ef Added solution to challenge "Regular Expressions: Match Characters th… (#34668)
* Added solution to challenge "Regular Expressions: Match Characters that Occur Zero or More Times"

* fix: removed necessary brackets
2019-02-05 08:03:19 -08:00
Chelsea Marie Hicks 8d7bd3906c Grammar change and readability of example (#30507) 2019-02-05 21:14:05 +05:30
John Sprunger 7ae6577cda Change for second test case (#34785)
Original: "Your code should create a method in Bird called getWeight that returns the weight".
New: "Your code should create a method in Bird called getWeight that returns the weight 15".

Since 15 is the only current passing value I feel it should be plainly stated instead in the test case.
2019-02-05 21:07:17 +05:30
rupali317 42bf229f59 fix: modified the test case such that the variable is a local scope o… (#34959)
* fix: modified the test case such that the variable is a local scope of the function

* fix: make test inclusive
2019-02-05 09:40:58 +03:00
Pepijnk12 ab4367a751 Update URL for 404 error (#35042)
* Update URL for 404 error

* fix: correct url
2019-02-04 13:34:47 +03:00
The Coding Aviator 90a9df1a5d Fixed problem with regex in es6 import challenge (#19718)
import-a-default-export.english.md: support both main quoting styles
2019-02-03 18:07:55 +01:00
Paul Gamble fabd45e1b4 Revert "Challenge - ES6: Use Destructuring Assignment to Assign Variables from Arrays - Added solution (#26531)" (#34949)
This reverts commit 23096f7ed6.
2019-01-31 10:39:39 -08:00
Casey Bennington 7f9cbe982b Add the solution (#28899)
* Add the solution

* Update divide-one-decimal-by-another-with-javascript.english.md

The solution was not passing. Change should pass now.

* Update divide-one-decimal-by-another-with-javascript.english.md


Co-authored-by: Paul Gamble <pgamble@gmail.com>
2019-01-25 11:10:44 -05:00
Casey Bennington d2286fc3b5 Added solution (#28907)
LGTM!
2019-01-25 10:17:46 -05:00
Alan Price 1a6e1e57cc Added solution (#27077) 2019-01-24 15:36:57 -05:00
Joe Erickson 6a777a9b16 Add solution to find more than one challenge (#27476) 2019-01-24 15:29:23 -05:00
Joe Erickson 13b3e3fa9b Add solution to match whitespace problem (#27470)
* Add solution to match whitespace problem

* fix: corrected case of countWhiteSpace on line 61
2019-01-24 15:23:07 -05:00
Alan Price 23096f7ed6 Challenge - ES6: Use Destructuring Assignment to Assign Variables from Arrays - Added solution (#26531)
* added solution for challenge

* removed function from seed and solution
2019-01-24 14:24:27 -05:00
buhidar 589257cf02 Typo fix on line 11 (#34922) 2019-01-21 19:06:10 -08:00
The Coding Aviator ca2d01a81c feat(curriculum): add grouping characters challenge and guide (#34875)
Added new challenge for mixed grouping of characters
2019-01-17 22:08:46 +01:00
Valeriy S 9b75c1965a fix(curriculum): replace window by self for js challenges 2019-01-16 10:45:39 +00:00
Alan Price 37d98f1123 Challenge - ES6: Write Arrow Functions with Parameters - Expanded description (#25997)
* Reworded and expanded the description

* renamed the function in the multiple param example
2019-01-09 11:00:16 +00:00
Nhat Khanh e5756ae1d6 [Guide] Functional Programming: Sort an Array Alphabetically using the sort Method. Fixes and enhancements. (#34678) 2018-12-21 22:50:52 +05:30
Alan Price d36922c496 Added solution (#27127) 2018-12-15 12:41:12 +05:30
Ashish Singh ffce49d024 fixing typo for one of the challenges in es6 section for issue #34578 (#34579)
* fixing typo on UI

* changed tes string

* updated changes for issue #34578
2018-12-15 11:56:12 +05:30
Aditya 56ded4174c [Fix] Object Oriented Programming: Remember to Set the Constructor Property when Changing the Prototype (#34569) 2018-12-14 19:59:35 +09:00
Adrian Skar 0af7ebad6d [Curriculum] ES6: Prevent object mutation; fix minor typos (#34650) 2018-12-12 13:32:28 +00:00
Aditya 4145efc467 [fix] Test for Pass Arguments to Avoid External Dependence in a Function (#34522)
* feat: test works for => fns, added solution

* fix: moved solution
2018-12-04 20:50:19 +09:00
Alan Price 40f152ba15 Challenge - ES6: Use getters and setters to Control Access to an Object - Added solution and explanation of private variable naming convention (#24362)
* added explanation of private variable naming convention

* Added "Note:" to the front of the explanation

* Added solution

* Moved "Note:" to it's own line and made it bold

* fix: moved note block at the bottom
2018-12-03 19:10:09 +05:30
Ben Brown 929e0db633 fix(challenge): use-the-conditional-ternary-operator (#19535) 2018-12-03 14:19:57 +05:30
Ariel 2f23fb544d Fixes minor typo (#34326)
"should not be be" changed to "should not be"
2018-11-29 02:28:48 +05:30
Aditya 254897c372 fix: fixed the test and added solution 2018-11-27 19:52:49 +09:00
Abhishek Kakade f4f5ce4b85 fix: updated challenges text (#34458) 2018-11-27 02:05:14 +05:30
Aditya a489ac9df8 fix(curriculum): Use the reduce Method to Analyze Data (#34315) 2018-11-22 20:14:31 +03:00
Aditya 8d593a1256 fix(curriculum): Create Strings using Template Literals (#34296) 2018-11-22 19:51:51 +03:00
Aditya d9c6a13741 [Tests] ES6: Use Destructuring Assignment with the Rest Operator (#34303) 2018-11-22 22:27:16 +09:00
Mike Perry Yeboah Attara 74a5c8d15a Fix inconsistent formatting of the welcomeToBooleans function (#34373)
fix the inconsistency in the formatting of the function and also fix issue #34367
2018-11-18 22:05:08 +05:30
Kenford20 7304bdc0af Update description of pig-latin algorithm (#21235) 2018-11-12 16:13:49 +09:00
Greg Brewton 7a1256df79 Minor clarification (#34250)
(?=\D*\d) is looking for a non-number to precede a number. If '12Three' was passed in to test, it would not match though it matches the stated criteria of 5 character minimum length and two consecutive numbers.
2018-11-10 10:33:01 +05:30
mail-liam 86be0947b5 Updated tests for 'Iterate through an array with a for loop' to ES6 (#19722) 2018-11-08 22:02:21 +09:00
Prabhat Kumar Sahu fa4117ae85 Solution write-higher-order-arrow-functions.english.md (#18772) 2018-11-07 20:37:01 +09:00
Carol W 54074a790c fix: add additional tests for Regular Expression challenge (#18696)
fix(curriculum): add additional tests and solution for Restrict Possible Usernames challenge
2018-11-06 16:21:26 +03:00
The Coding Aviator f4ff1d961d Corrected wording in es6 challenge (#19946)
* Update compare-scopes-of-the-var-and-let-keywords.english.md

* Updated line

Co-Authored-By: thecodingaviator <34807532+thecodingaviator@users.noreply.github.com>

* Format the document
2018-11-05 12:58:36 -05:00
Eric Kao 8b21132cac Fix line for Example (#20713)
* Fix line for Example

Bolded Example is inline with description. Added new line so that Example will have its own line (right before the actual example)

* Add line break after Description
2018-11-04 07:18:50 +05:30
Martin Payne b63711fd83 Changed "match all the upper and lower a" to "match all the upper and lowercase a" (#34171)
This is just a simple grammar fix but I feel like upper and lowercase a reads better so it's worth making this change.
2018-11-03 07:21:39 +05:30
Shreyas BS 55686d7197 Updated grammar (#20541) 2018-10-30 22:58:51 -05:00
The Coding Aviator b1da17a309 Update refactor-global-variables-out-of-functions.english.md (#19751) 2018-10-28 10:33:12 +07:00
Valeriy S 0aa6881508 test(curriculum): test suites must fail on the initial contents 2018-10-28 03:16:22 +05:30
Bannon Tanner 088b0ec458 added note about UpperCamelCase for ES6 classes (#26979)
* added note about UpperCamelCase for ES6 classes

proposed note in issue #17864

* added note as a new heading

changed from note as a sentence to note as a heading plus the actual note

* added <code> around SpaceShuttle

* removed markdown and added <strong> tag
2018-10-24 23:28:15 +05:30
Utkarsh Raj Singh 02206a2123 Modified the sort function (#25978)
Modification in the sort function to implement the better practice of returning 0 for the same elements. Not implementing the practice can break the function in new browsers.
2018-10-23 04:01:24 +05:30
Valeriy 79d9012432 fix(curriculum): quotes in tests (#18828)
* fix(curriculum): tests quotes

* fix(curriculum): fill seed-teardown

* fix(curriculum): fix tests and remove unneeded seed-teardown
2018-10-20 23:32:47 +05:30
Randell Dawson 65686b44e5 fix: removed all hidden chars from tests verbiage (#19674)
* fix: removed all &#8203; from tests verbiage

* fix: added single quote to start text string

* remove single quote from text line

* fix: removed the hidden chars in the testStrings

* fix: removed hidden chars from testString section

* fix: removed hidden chars form testString part

* fix: removed hidden chars from testString part

* fix: removed hidden chars from testString part
2018-10-20 17:58:26 +05:30
Prabhat Kumar Sahu d7810f6ab4 Update use-destructuring-assignment-to-assign-variables-from-nested-objects.english.md 2018-10-17 21:40:37 +09:00
Prabhat Kumar Sahu c9a8b38ed3 Update use-destructuring-assignment-to-assign-variables-from-objects.english.md 2018-10-17 21:35:21 +09:00
Prabhat Kumar Sahu 6f09033346 Update use-the-spread-operator-to-evaluate-arrays-in-place.english.md 2018-10-17 21:31:51 +09:00
Prabhat Kumar Sahu 1a2843934f Update write-arrow-functions-with-parameters.english.md 2018-10-17 21:03:53 +09:00
Prabhat Kumar Sahu 393489565e Update use-arrow-functions-to-write-concise-anonymous-functions.english.md 2018-10-17 21:01:40 +09:00
greggubarev 345dfd6dad Added </code> to test text (#19498) 2018-10-16 15:28:33 +01:00
greggubarev d644a2f494 Add solution (#19228)
Add solution (https://learn.freecodecamp.org/javascript-algorithms-and-data-structures/regular-expressions/match-characters-that-occur-one-or-more-times)
2018-10-16 13:56:45 +05:30
Prabhat Kumar Sahu e5ebcec171 Update declare-a-read-only-variable-with-the-const-keyword.english.md 2018-10-16 15:52:06 +09:00
Prabhat Kumar Sahu 9f98cdce3b Solution prevent-object-mutation.english.md (#18767)
* Update prevent-object-mutation.english.md

* Improved JavaScript style
2018-10-15 21:04:52 -03:00
Prabhat Kumar Sahu b13e23037c Solution mutate-an-array-declared-with-const.english.md (#18759)
* Update mutate-an-array-declared-with-const.english.md

* Improved JavaScript style
2018-10-15 20:54:43 -03:00
Prabhat Kumar Sahu 1e3804889e Solution compare-scopes-of-the-var-and-let-keywords.english.md (#18756)
* Update compare-scopes-of-the-var-and-let-keywords.english.md

* Improved JavaScript style
2018-10-15 20:51:56 -03:00
Prabhat Kumar Sahu 7d0212dfb8 Solution explore-differences-between-the-var-and-let-keywords.english.md (#18752)
* Update explore-differences-between-the-var-and-let-keywords.english.md

* Improve JavaScript style
2018-10-15 20:50:04 -03:00
Prabhat Kumar Sahu 6cb1a95c72 Solution use-multiple-conditional-ternary-operators.english.md (#18750)
* Update use-multiple-conditional-ternary-operators.english.md

* Update use-multiple-conditional-ternary-operators.english.md

* Improve JavaScript code style
2018-10-15 20:46:43 -03:00
petern 67cc558da6 Add solutions and update functional programming challenge instructions (#18931)
* feat: Update intro to currying

- Add solutions
- Add ES6 examples

* feat: Add solution to FP mutations

* feat: Add solution to function-programming map

- Add solutions, both vanilla and ES6 arrow functions
- Add JSON.stringify to console.log, makes it easier to see what the resulting output is rather than showing
e.g. [object, object, object]

* update: used the contributor's ES6 solution

Contributor originally had a non-ES6 solution and an ES6 solution.  I removed the non-ES6 solution.
2018-10-15 16:43:02 -07:00
Prabhat Kumar Sahu 459b8340f0 Solution use-the-conditional-ternary-operator.english.md (#18747)
* Update use-the-conditional-ternary-operator.english.md

* Use strict equals
2018-10-15 20:41:38 -03:00
Prabhat Kumar Sahu 7b8a6e7385 Solution use-the-parseint-function-with-a-radix.english.md (#18746)
* Update use-the-parseint-function-with-a-radix.english.md

* Improved JavaScript formatting
2018-10-15 20:40:05 -03:00
Prabhat Kumar Sahu 1f9e26c7fe Solution use-the-parseint-function.english.md (#18743)
* Update use-the-parseint-function.english.md

* Removed blank line
2018-10-15 20:38:37 -03:00
Jonathan Grah 65d47b6eeb fix: solution for checking if an object has a property (#19390)
Signed-off-by: Jonathan Grah <theflametrooper@gmail.com>
2018-10-15 16:04:24 -07:00
Ryan Bowlen 4a29977564 Added Solution to Challenge (#19372)
Added a Solution to "Basic Data Structures: Generate an Array of All Object Keys with Object.keys()" 's "Get a Hint" documentation.
2018-10-15 23:19:27 +01:00
Ryan Bowlen f4353999e3 Add solution to Challenge (#19369)
Added a solution to "Iterate Through the Keys of an Object with a for...in Statement"'s "Get a Hint" documentation.
2018-10-16 03:34:14 +05:30
Ryan Bowlen 1200859c07 Added Solution (#19367)
Added a solution for the challenge's "Get a Hint" documentation.
2018-10-15 22:29:05 +01:00
johngeesey a293769892 fix(coding): remove misleading test
A test that featured nested arrays just happens to work, but nested arrays will not be removed if they’re duplicates by the current solution of this challenge. See issue #18265
2018-10-15 19:31:54 +09:00
jefferson2z abc6c3c208 Fix typo on OOP challenge (#18616)
* Fix type on OOP as requested on issue #18091

fix: 
numLegs: 2 to numLegs: 4 

on challenge:
 Remember to Set the Constructor Property when Changing the Prototype

* Update remember-to-set-the-constructor-property-when-changing-the-prototype.english.md
2018-10-14 04:34:41 +05:30
Bouncey ee9f6b2d72 chore(meta): Move challenge meta to challenges root 2018-10-11 02:15:05 +05:30
halcyondays22 5bac4d3818 fix: typos in JavaScript Algorithms & Data Structures challenges 2018-10-10 09:26:45 +01:00
Lauren Van Sloun 0d5fec5e21 Fixed typo issue in Iterate Over All Properties 2018-10-09 02:54:25 +05:30
Beau Carnes 46d8d61776 docs: update guide url 2018-10-08 11:02:25 -04:00
Bouncey a859035023 fix(challenge-md): Fix quotes that failed in the transform 2018-10-08 11:38:26 +05:30
Bouncey 8f39bc1288 chore(curriculum): Remove files in wrong format 2018-10-05 15:58:12 +01:00