
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!
AI Snips
Chapters
Transcript
Episode notes
Optional Chaining
- Use optional chaining (
?.) to safely access nested properties. - This avoids errors when properties are missing, simplifying data handling.
Promise.allSettled()
- Use
Promise.allSettled()to wait for all promises to resolve or reject. - Unlike
Promise.all(), it doesn't short-circuit on rejection.
Dynamic Import
- Employ dynamic imports for efficient module loading.
- This enables code splitting, loading modules only when needed.
