IR
Size: a a a
IR
SV
A
SV
A
SV
A
ES
TS
ES
DN
N
D
DT
MZ
D
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);
MZ
MZ
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);