JavaScript: Predict the Output Questions vol. 1

Elizabeth Westphal
5 min readJan 1, 2022

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.

--

--

Elizabeth Westphal

Lover of science and statistics, I write short data-backed articles and always cite my sources!