Javascript – How to store an object inside an array?
I have two arrays and I want to store them in one array and create them as an object. const name = ["Amy", "Robert", "Sofie"]; const age = ["21", "28", "25"]; The output I want is: const person =[{name: 'Amy',…