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

Hasty Treat - Stumped! 03

In this Hasty Treat, Scott and Wes are back for another edition of Stumped! where they try to stump each other with interview questions. Today’s questions are from Flashcards for Developers. EmailOctopus - Sponsor Email marketing for less, via Amazon SES. EmailOctopus sends your emails through Amazo

Featured Speakers

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

Topics Discussed

Episode Summary

Executive Summary: Recorded in person at a San Francisco hotel ahead of a live Jamstack Conf show, Scott Tolinski and Wes Bos play a JavaScript interview-question game. They explain core concepts including synchronous versus asynchronous execution, call/apply, modules, equality, null and undefined, the event loop, and why extending built-in prototypes is risky. The episode also features an Email Octopus sponsorship and a closing reflection on being honest when unsure in interviews.

Main Topics: JavaScript interview-question game: The hosts quiz each other using developer flashcards, discussing common interview topics and acknowledging that some answers are easier to explain after preparation than off the cuff. Synchronous and asynchronous execution: Synchronous operations block other JavaScript work, while asynchronous operations allow work to continue and return results later through mechanisms such as callbacks, promises, and async/await. Blocking browser dialogs and Node file-writing APIs illustrate the distinction. JavaScript fundamentals and function behavior: The hosts cover call versus apply, sharing code through modules or namespaces, strict versus loose equality, and the distinctions among null, undefined, and undeclared variables. Event loop and browser execution: They describe how JavaScript work is queued and recommend Philip Roberts’s talk, “What the heck is the event loop anyway?” They also distinguish DOMContentLoaded from load, which waits for resources such as images. Avoiding extensions to built-in prototypes: Adding custom methods to built-in objects can create naming collisions and compatibility problems. The hosts cite MooTools conflicts involving proposed array methods and recommend using separate functions or namespaces, except when polyfilling standard APIs. Recording context and Email Octopus sponsorship: The hosts record their first episode together in person, with less equipment than usual, and promote Email Octopus as a hosted email-management option that uses the customer’s Amazon SES key and offers comparatively inexpensive plans. Honesty in technical interviews: They argue that candidates should avoid bluffing when they do not know an answer, and instead be candid and engage in a genuine discussion.

Key Arguments: Synchronous JavaScript can prevent other work from running until it finishes; asynchronous approaches let an operation proceed in the background and handle its result later. Use strict equality by default because it checks both value and type; loose equality can produce surprising coercions, such as 0 == false. Modules are generally preferable to placing application code on a global namespace, though namespaces are an alternative for organizing shared code. Avoid adding application-specific methods to built-in prototypes because other libraries or future language features may use the same names and cause conflicts. In interviews, it is better to admit uncertainty than to bluff; the hosts note that on-the-spot explanations are not always as polished as prepared teaching material.

Data Points: Email Octopus subscriber plans: 2,500 subscribers free; 10,000 subscribers for $19/month; 50,000 subscribers for $39/month - The hosts describe the service’s advertised pricing tiers during the sponsorship segment. Amazon SES sending-cost example: About $1 for 10,000 emails - Wes gives an approximate example of the wholesale email-sending cost when using Amazon SES. Timer example: 300 milliseconds - A recurring page update is suggested as a way to observe how synchronous code blocks other browser activity. Episode schedule mentioned: Live show on Wednesday; another regular hasty treat on Monday - The hosts preview upcoming episodes at the close.

Pivotal Quotes: "The last thing you want to do is like act like you know something when you don't." — Wes Bos: Wes’s advice on how to handle unfamiliar questions in a technical interview. "Generally just don't touch." — Wes Bos: His concise recommendation against casually extending built-in JavaScript objects. "Both.call and apply are used to invoke functions, and the first parameter will be used as the value of this within the function. The call argument will take a comma-separated argument as the next arguments, and apply takes an array of arguments." — Wes Bos: The explanation of the key distinction between Function.prototype.call and Function.prototype.apply.

Implications: Developers benefit from understanding JavaScript’s execution model and language fundamentals even when frameworks hide some details. Favor standard APIs, modules, and explicit equality; avoid prototype conflicts, and respond to knowledge gaps honestly in interviews.

🔓 Sign Up for Unlimited Episode Search

About Syntax - Tasty Web Development Treats

View all episodes from Syntax - Tasty Web Development Treats