D
Size: a a a
D
Y
let userList1=[];
function init(){
const data = fetch(`${URL}?results=${USERS_PER_PAGE}`).then(response => response.json())
.then(json => {
console.log(json.results);
userList1 = json.results.map(({ name}) => (
new User(name);))
return userList1;
})
.catch((err) => {
console.log(err);
});
}
userList1= await init();
console.log(userList1);
D
Y
Y
Y
D
TS
DT
DT
TS
TS
D
E
D
return userList1;
я добавила скобочкиDT
DT
Y
Y
Y