Ребят, обьясните пожалуйста почему выдает ошибку(unexpected identifier line 18)? в прошлый раз я делал практически то же самое и все работало нормально, в чем может быть проблема?
function getNewArr(arr){
let tempArr = []
for (let i = 0; i < arr.length; i++){
const a = arr[i]
class Customer{
constructor({name, username, email, address, phone, website, company, posts, accountHistory}){
this.name = name;
this.username = username;
this.email = email;
this.address = address;
this.phone = phone;
this.website = website;
this.company = company;
this.posts = posts;
this.accountHistory = accountHistory;
}
let customerObj = new Customer(a);
tempArr.push(customerObj)
}
return tempArr
}
}