DEV Community

Discussion on: ES6 Handbook: Everything You Need to Know

oskargrosser profile image
Oskar Grosser

In your "Objects"-section, you create an object and return it, but you have confused curvy braces () with curly braces {}. In the ES6-notation, it would have been interpreted as if you used the comma-operator, and thus would only return the right-most value.

Otherwise, great article! Really handy cheatsheet in case one wants to look something up quickly.