My problem is that the setFiles function created here always logs 1. My understanding is that the let declaration in the for
setFiles
1
let
for