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

@ -61,9 +61,9 @@ tests:
function countToFive() {
let firstFive = "12345";
let len = firstFive.length;
// Fix the line below
// Only change code below this line
for (let i = 1; i <= len; i++) {
// Do not alter code below this line
// Only change code above this line
console.log(firstFive[i]);
}
}
@ -84,9 +84,9 @@ countToFive();
function countToFive() {
let firstFive = "12345";
let len = firstFive.length;
// Fix the line below
// Only change code below this line
for (let i = 0; i < len; i++) {
// Do not alter code below this line
// Only change code above this line
console.log(firstFive[i]);
}
}