AJAX Operations

(()=>{ 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.

@yash.jain your code is working perfectly, see here

problem might be there because you have not included the jquery script file or cdn, add that and run again