I made a array named "arr" length of 3 value and I also added addEventListener to 'formF' variable, when function of this addEventListener run it should 'push' formArr object to to "arr" array which is outside the event function but it doesn't. But if I console the 'arr' within the addEventListener function it shows that value is adding to arr array .And when I console it outside the addEventListener it doesn't add value to arr array. Could you solve this problem
I try spread operator and unshift function.