DEV Community

Discussion on: 10 Clean code examples (Javascript).

 
mellen profile image
Matt Ellen

10 could be really bad in a language like c++ with operator overloading. But, yeah, the "incorrect" version is much clearer, regardless.

Thread Thread
 
dasdaniel profile image
Daniel P 🇨🇦

what about const [a, b, c] = [d, d, d]; ?

brent approves