DEV Community

Discussion on: Can you hack this? #1

Collapse
 
ironcladdev profile image
Conner Ow

It printed false.

const nameEqualsToItself = (person) => person.name === person.name
const personX = { name: NaN, };
console.log(nameEqualsToItself(personX))
Enter fullscreen mode Exit fullscreen mode