DEV Community

Discussion on: What's wrong with this code?

Collapse
 
adam_cyclones profile image
Adam Crockett 🌀

This is an interesting point. What if some of the groceries where constant, such as the old tins you'll have in your cupboard for years. Seriously though, you can only have all constant or all let.

Collapse
 
dance2die profile image
Sung M. Kim

Thanks Adam, you are right, I've realized that the syntax is for all || nothing