Syntax - Tasty Web Development Treats

Hasty Treat - Stump’d

Aug 24, 2020
Scott and Wes challenge each other with tricky web development questions, exploring HTML vs. React event handling. They dive into JavaScript data types and the states of Promises, illuminating the differences between HTML specs and browser implementations. The hosts grapple with the quirks of 'double equals' in JavaScript, emphasizing type conversion. They discuss memoization for enhanced efficiency and clarify the roles of localStorage and sessionStorage in web applications. Tune in for a fun mix of trivia and insights!
Ask episode
AI Snips
Chapters
Books
Transcript
Episode notes
INSIGHT

React vs. HTML Event Handling

  • React uses camel case for event handlers (onClick) while HTML uses lowercase (onclick).
  • React event handlers receive a synthetic event object, not the native browser event.
INSIGHT

JavaScript Data Types

  • JavaScript has seven primitive data types: number, string, boolean, null, undefined, symbol, and object.
  • Wes Bos successfully listed all seven after initially struggling.
INSIGHT

Promise States

  • Promises have three states: pending, fulfilled (resolved), and rejected.
  • Scott Tolinsky correctly identified the states despite some initial uncertainty.
Get the Snipd Podcast app to discover more snips from this episode
Get the app