Dindex is not defined in Closures in a loop. It will throw an error.Comment·Article·Aug 2, 2022·Simplifying Closures in JavaScript