fix(curriculum): Consolidated comments for JavaScript Algorithms and Data Structures challenges - part 2 of 4 (#38259)
This commit is contained in:
@ -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]);
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user