Syntax - Tasty Web Development Treats

What's New in Javascript

May 13, 2020
Scott and Wes dive into the latest JavaScript features like Array.flatMap() and Optional Chaining, which streamline coding processes. They humorously compare tech frustrations to everyday mishaps while exploring advanced topics such as BigInt and the Navigator.share API. The discussion also highlights new string methods and the pipeline operator for code clarity. They even touch on practical tools like LogRocket that help track user sessions. Expect insights on web development's evolving landscape alongside personal anecdotes!
Ask episode
AI Snips
Chapters
Transcript
Episode notes
ADVICE

Optional Chaining

  • Use optional chaining (?.) to safely access nested properties.
  • This avoids errors when properties are missing, simplifying data handling.
ADVICE

Promise.allSettled()

  • Use Promise.allSettled() to wait for all promises to resolve or reject.
  • Unlike Promise.all(), it doesn't short-circuit on rejection.
ADVICE

Dynamic Import

  • Employ dynamic imports for efficient module loading.
  • This enables code splitting, loading modules only when needed.
Get the Snipd Podcast app to discover more snips from this episode
Get the app