I is not defined?!?!?

Tell us what’s happening:
this is the exact code written in the solution AND in a few youtube videos i watched. i have clearly defined i in the for loop, yet it keeps saying it is not defined. i understand the lesson, i’m just bogged down by this technicality. any help appreciated.

Your code so far

const result = {
success: ["max-length", "no-amd", "prefer-arrow-functions"],
failure: ["no-var", "var-on-top", "linebreak"],
skipped: ["id-blacklist", "no-dup-keys"]
function makeList(arr) {
"use strict";

// Only change code below this line
const resultDisplayArray = [];
for(let i = 0; i < arr.length; i++); {
resultDisplayArray.push(`<li class="text-warning">${arr[i]}</li>`); 

// Only change code above this line

return resultDisplayArray; 

const resultDisplayArray = makeList(result.failure);

Your browser information:

User Agent is: Mozilla/5.0 (X11; CrOS x86_64 13020.87.0) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/83.0.4103.119 Safari/537.36.

Challenge: Create Strings using Template Literals

Link to the challenge:

the semicolon here ends the loop, so i is technically defined in a different code block


wow. i’m uhh…yeah. time for me to buy some smart pills. thanks.