Sugar or syntactic sugar up now you often you'll hear it just shortened to sugar many times What does this mean? It's basically what you're getting 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. But me personally, you know, I'm a fan of sugar in many ways You know it should be evident by my usage of spelt because something like the dollar sign and spelt Is syntactic sugar to reference a subscription? And when we got back ticks for template strings, that's just syntactic sugar over um the ability to Close a string
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