Sugar or syntactic sugar is a nicer more human readable syntax for the same things that you'd be doing in a maybe not even always more complex way but sometimes just an uglier way so to say. It's taking a thing that everybody kind of did a certain way already and saying oh you can also do it this way in JavaScript as well using this class syntax. But me personally, you know, I'm a fan of sugar.
In this Hasty Treat, Scott and Wes explain what the jargon you hear in JavaScript means.
Sentry - Sponsor
If you want to know what’s happening with your code, track errors and monitor performance with Sentry. Sentry’s Application Monitoring platform helps developers see performance issues, fix errors faster, and optimize their code health. Cut your time on error resolution from hours to minutes. It works with any language and integrates with dozens of other services. Syntax listeners new to Sentry can get two months for free by visiting Sentry.io and using the coupon code TASTYTREAT during sign up.
Freshbooks - Sponsor
Get a 30 day free trial of Freshbooks at freshbooks.com/syntax
Show Notes
- 00:25 Welcome
- 01:06 Sponsor: Sentry
- 01:59 Sponsor: Freshbooks
- 02:27 What does that even mean?
- 02:55 Everything in JavaScript is an Object!
- 04:43 X is just Syntactic Sugar
- 09:00 Functions are first class citizens
- 10:04 Object Literals or Template Literals
- 11:12 Declarative vs Imperative
Tweet us your tasty treats