I want to do something like this:
for(var i = 1; i <= 5; i++){
let ii = i;
for(var l = 'a'; l < 'z'; l++){
let ll = l;
}
}
I want the for that is inside the other for to be executed from 'a' to 'z', 5 times, but it only prints the a, do I need to do something else?
You can't work with simple characters. You have to convert them to their ASCII value in order to iterate over them. I leave you an example: