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>
This commit is contained in:
Randell Dawson
2020-03-25 08:07:13 -07:00
committed by GitHub
parent 50f15886b8
commit e0e6334628
42 changed files with 176 additions and 263 deletions

View File

@ -38,7 +38,7 @@ tests:
```js
// add code above this line
// Only change code above this line
subtract(7,4);
```
@ -51,7 +51,6 @@ subtract(7,4);
```js
import subtract from "./math_functions.js";
// add code above this line
subtract(7,4);
```

View File

@ -47,7 +47,7 @@ tests:
```js
// add code above this line
// Only change code above this line
uppercaseString("hello");
lowercaseString("WORLD!");
@ -61,7 +61,6 @@ lowercaseString("WORLD!");
```js
import { uppercaseString, lowercaseString } from './string_functions.js';
// add code above this line
uppercaseString("hello");
lowercaseString("WORLD!");

View File

@ -44,7 +44,7 @@ tests:
```js
// add code above this line
// Only change code above this line
stringFunctions.uppercaseString("hello");
stringFunctions.lowercaseString("WORLD!");
@ -58,7 +58,6 @@ stringFunctions.lowercaseString("WORLD!");
```js
import * as stringFunctions from "./string_functions.js";
// add code above this line
stringFunctions.uppercaseString("hello");
stringFunctions.lowercaseString("WORLD!");

View File

@ -56,7 +56,6 @@ const sum = (x, y, z) => {
const args = [x, y, z];
return args.reduce((a, b) => a + b, 0);
}
console.log(sum(1, 2, 3)); // 6
```
</div>