I need to check all combinations a-z, with a string length of 2. So, example output would be:
aa ab ac ad ae etc.
I've been trying to use for loop, but to no success. This is what I got:
var length = 2;
var password = [];
var possible = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789";
for(var l = 0; l < length; l++)
{
for(var c = 0; c < 62; c++)
{
password[c] = possible.charAt(c);
document.getElementById("code").innerHTML = password;
}
}