

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!
AI Snips
Chapters
Books
Transcript
Episode notes
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.
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.
Promise States
- Promises have three states: pending, fulfilled (resolved), and rejected.
- Scott Tolinsky correctly identified the states despite some initial uncertainty.