DEV Community

Discussion on: 70 JavaScript Interview Questions

Collapse
 
thuanpv1 profile image
thuanpv1

for the case 59:
let obj = { prop: undefined }
the third method will not work with this object.

Collapse
 
macmacky profile image
Mark Abeto

Hi, yes It will not work because you're setting the value of that property as 'undefined ' value.