JavaScript: Predict the Output Questions vol. 1

Let’s take a look at some interview style questions that are a bit different from the typical LeetCode blackboard interview questions. These problems are meant to check for a deep understanding of the rules and quirks of the JavaScript language that cannot be tested through the typical algorithm problems.

Lets look at four problems, their answers, and step-by-step explanations for each. You’ll get the most out of these problems if you try to solve them yourself before scrolling to the answer.

--

--

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store
Amy Hayes

Amy Hayes

All things software, math, and tech