(()=>{
let people=(’#people’)
('#fetch').click(()=>{
.get(‘https://reqres.in/api/users’,(data)=>{
for(let person of data.data){
people.append(('<li>{person.first_name} ${person.last_name}’))
}
})
})
})
This is the jquery code. While clicking on the fetch button I am not getting the desired result.