DEV Community

loading...

Discussion on: Prevent Object Retrieval TypeError with &&

Collapse
samanthaming profile image
Samantha Ming Author • Edited

That’s the really interesting thing about JS or programming in general. There are always multiple ways of solving things. Some of them are definitely a syntactic choice. I’m always in the camp of expanding my toolkit so when I run across it (especially from others code), I know what’s going on. But at the end of the day, you’re the owner of your code, so pick the way that makes the most sense to you 😊