'How to make [i] dynamic using jQuery?

I have a list there is an array in each list. Now I'm trying to make array [i] dynamic this is not working. How to solve it?

My Code

for (let i = 0; i < result.result.length; i++) {
    $.each(result.result[i].services, function(key, value) {
        serviceList += `<li>${value.name}</li>`;
    });
}


Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source