Using curly brackets in JavaScript, I’m creating an object. I don’t have to assign an object to anything, it can just be. The “trick” is that when you’re making an object, you can “shorthand” it by providing only a variable, which makes it implied.

1m read timeFrom css-tricks.com
Post cover image
2 Comments

Sort: