If i have the following array
const Array = ['Michael', 'student', 'John', 'cop', 'Julia', 'actress']
How could i make an object like
const Object = {
Michael: student,
John: cop,
Julia: actress,
}
Is there a way to make the even index elements to be the object's keys and the odd index elements to be the key's values?