Declarative versus imperative is kind of the difference between step-by-step instructions First like a structural output of this thing. If you look at like react code React code has like a template And that template is if you're defining your actions You're declaring them in the template as a means of programming them rather than saying step-by.-step Create this div then add this text to this div thenAdd that div to the page.
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