fix(curriculum): Consolidated comments for JavaScript Algorithms and Data Structures challenges - part 2 of 4 (#38259)

This commit is contained in:
Randell Dawson
2020-03-02 23:18:30 -08:00
committed by GitHub
parent 012e5c848b
commit 6a7a7e6d7d
69 changed files with 111 additions and 141 deletions

View File

@ -50,9 +50,9 @@ const makeServerRequest = new Promise((resolve, reject) => {
let responseFromServer;
if(responseFromServer) {
// change this line
// Change this line
} else {
// change this line
// Change this line
}
});
```

View File

@ -62,7 +62,7 @@ tests:
const arr1 = ['JAN', 'FEB', 'MAR', 'APR', 'MAY'];
let arr2;
arr2 = []; // change this line
arr2 = []; // Change this line
console.log(arr2);
```

View File

@ -65,7 +65,7 @@ var myConcat = function(arr1, arr2) {
"use strict";
return arr1.concat(arr2);
};
// test your code
console.log(myConcat([1, 2], [3, 4, 5]));
```
@ -83,7 +83,7 @@ const myConcat = (arr1, arr2) => {
"use strict";
return arr1.concat(arr2);
};
// test your code
console.log(myConcat([1, 2], [3, 4, 5]));
```