Completely legible if you leverage whitespace and understand what commas and semi-colons mean.

Also Pascal, Modula 2, Ada, and possibly even PHP programmers are laughing at you.

Because if this:

profile = ['bob', 34, 'carpenter'],
[name, age, job] = profile;

Is “not readable” then one might want to reconsider programming for a living. Particularly given the sheer volume of “real” programming languages that use this syntax exclusively. As opposed to hack-filled kludgy toys like JavaScript with its lassez-faire attitude towards everything.

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store