DEV Community

Discussion on: 10 Clean code examples (Javascript).

 
jamesthomson profile image
James Thomson

It's re-assigning the value. ['y']: b assigns the value of y to b so you can now access it as b.