Whenever I run this snippet:
let longString = 0;
let fact = 6;
const lettersLeft = ["abcde"]
const select = lettersLeft;
let j = 1
while (j <= fact, j=j+1) {
longString += select;
}
console.log(longString);
it crashes my app. I'm thinking it is trying to run indefinately, or it cannot read something. How do I fix this because this is very important to my code.
Via Active questions tagged javascript - Stack Overflow https://ift.tt/E9hzFAM
Comments
Post a Comment