I was writing a function the other day and noticed that I couldn\'t access variables outside of a forEach statement, but I could when I changed the forEach into a for statement,