text stringclasses 1
value |
|---|
### Human: I want this code to log out “hey amy”, but it logs out “hey arnold” - why?
function greet(person) {
if (person == { name: 'amy' }) {
return 'hey amy'
} else {
return 'hey arnold'
}
}
greet({ name: 'amy' })### Assistant: Here the problem is the following: { name: 'amy' } != { name: 'amy' }. Whe... |
README.md exists but content is empty.
- Downloads last month
- 9