Syntax - Tasty Web Development Treats
Syntax - Tasty Web Development Treats

STUMP'D - Coding Interview Questions

In this episode of Syntax, Scott and Wes are back with another edition of Stump’d! where they try to stump each other with interview questions. Freshbooks - Sponsor Get a 30 day free trial of Freshbooks at freshbooks.com/syntax and put SYNTAX in the “How did you hear about us?” section. LogRocket -

Featured Speakers

Wes Bos & Scott Tolinski - Full Stack JavaScript Web Developers Host

Topics Discussed

Episode Summary

Executive Summary: A "stumped" Syntax episode where Scott and Wes quiz each other on JavaScript interview questions, surfacing both familiar fundamentals and obscure APIs like labels, weak maps/sets, Object.is, and URLSearchParams. The discussion mixes practical explanations, edge cases, and real-world advice on minification, event handling, dynamic loading, and garbage collection, with sponsor breaks and a brief update on Scott’s studio move and a GraphQL codegen refactor.

Main Topics: JavaScript interview-question game format: The hosts explain the stumped episode format: randomly selecting questions from a large GitHub repo and trying to answer without preparation, highlighting how interviews can reveal depth under pressure. Core JavaScript concepts and edge-case APIs: They cover first-class functions, Object.is, error objects, labels, preventDefault, spread syntax, and array.some—mixing standard interview answers with less common behaviors and gotchas. WeakMap, WeakSet, and garbage collection: A recurring theme is weak references: what WeakMap/WeakSet do, how they differ from Map/Set, and why they are useful for metadata that should disappear automatically when objects are garbage collected. DOM, events, and dynamic loading: They discuss preventDefault, loading CSS and JavaScript dynamically, query-string parsing with URLSearchParams, and task queues in the event loop, tying browser APIs to practical app behavior. Performance and build tooling: Minification is described as a way to shrink bundles by removing whitespace, renaming variables, and eliminating unused code, with the goal of faster page loads. Studio move, refactors, and sponsor messages: Scott shares audio issues due to packing for a studio move and describes a GraphQL codegen plugin refactor that removes Apollo dependency. The episode also includes sponsor reads for FreshBooks, LogRocket, and Auth0.

Key Arguments: Interview questions can expose knowledge gaps even in commonly used languages because pressure changes how easily one can articulate the answer. First-class functions are central to JavaScript’s flexibility because functions can be stored, passed, and returned like any other value. Object.is is a niche comparison method with special handling for edge cases like -0, +0, and NaN; it is not just a generic object equality check. WeakMap and WeakSet are valuable because they allow metadata to be associated with objects without preventing garbage collection. minification improves delivery speed by reducing bundle size through whitespace removal, variable renaming, and dead-code elimination. preventDefault remains essential in modern client-side apps because many browser events have built-in behaviors that need to be overridden. URLSearchParams is the browser-native way to safely parse query strings, avoiding manual splitting edge cases. Dynamic imports offer a cleaner modern way to load JavaScript on demand, while CSS is still typically loaded via a dynamically created link element.

Data Points: Question repository size: 425 questions - The stumped episode draws questions from the Sudhir J GitHub repo. Random question selected first: 11 - They used Math.random() * 425 and landed on question 11 for the first prompt. Object.is special cases: 4 behaviors - Discussion cited comparison of strings, numbers, polarity of numbers, and objects, plus edge cases with signed zero and NaN. GraphQL fetcher size: 100 lines of code - Scott described replacing a larger dependency with a custom GraphQL fetcher integrated into codegen. WeakMap / WeakSet methods: 4 methods - The weak set answer listed add, delete, has, and length as the methods in the quiz context. Studio move timing: T-minus a couple days - Scott said they were days away from moving out of the current studio setup. FreshBooks trial: 30-day unrestricted free trial - Sponsor offer for listeners using the Syntax referral path. LogRocket trial: 14 days for free - Sponsor offer mentioned during the episode. Coupon code: syntax for 10-buck talk / extra $10 off - Wes referenced his courses and ES6.io coupon during the outro. Course release timing: August 31 - Scott mentioned the upcoming Web Components 101 course release date.

Pivotal Quotes: "A first class function means that languages that have first-class functions mean that functions are treated like any other variable or any other value." — Wes: Explaining first-class functions and why functions can be stored, passed, and returned. "Object.is is used a little bit, a little bit more interestingly than I think you might expect." — Wes: Introducing the quirks of Object.is compared with == and ===. "Minification is when you take your JavaScript that you have written, and you run it through a minifier, and the minifier will try and make it as small as possible." — Wes: Answering what minification is and why it improves load speed.

Implications: Listeners get a practical map of interview-worthy JavaScript topics, especially less-common APIs and browser behaviors. The episode reinforces that deeper platform knowledge improves both interviews and real-world debugging, refactoring, and performance work.

🔓 Sign Up for Unlimited Episode Search

About Syntax - Tasty Web Development Treats

View all episodes from Syntax - Tasty Web Development Treats