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.
For further actions, you may consider blocking this person and/or reporting abuse
We're a place where coders share, stay up-to-date and grow their careers.
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.