DEV Community

loading...

Discussion on: ES2020 Features in simple examples

Collapse
markkupainomaa profile image
markkupainomaa

In Nullish section falsy examples:

const value = values.numberValue || 300; //300

I think you wrote values.numberValue instead of values.zeroValue? Because it's supposed to return 400.