0

The following code works:

 let check = checkingImages.every((item)=>item.classList.contains('matched'))

But this one doesn't:

let check = checkingImages.every((item)=>{
item.classList.contains('matched')
})

Can someone explain what's the reason for the second code not working, please?

0 Answers0