Kevin
Kevin
@1kevinson.bsky.social
Yesterday, I discovered this JavaScript tip: Object literal shorthand.

When an object is being constructed, you can use the shorthand notation by simply writing `{email}` instead of `{email: email}`.

It seems obvious, but I wasn't aware of it until yesterday 🙂
February 19, 2025 at 8:43 AM
Reposted by Kevin
Psst! 🕵️

The Black Friday sale on my courses starts tomorrow, but I secretly just launched part of it right now! 😮

You can get my two flagship courses in a brand-new bundle, and save 50% in the process. ✨

I made a landing page for it and everything:
www.joyforjs.com
Joy for JavaScript Developers • Josh W. Comeau
Grab both of my flagship courses — CSS for JavaScript Developers and The Joy of React — in one delightful bundle 😄
www.joyforjs.com
November 24, 2024 at 11:03 PM