Videos / Web Dev
Episode 3 of 9 · The interview course
JavaScript interview: forty output puzzles, answered Included with a plan
This video is included with a plan. The first three lessons of every track are free, with their boards and videos. A plan unlocks every lesson, board, video, lab and paper for one price.
View plans → Already a member? Sign in
Chapters
How the drill works 0:00 01 · floating point 0:20 02 · the same trap, luckier 0:37 03 · plus with no numbers 0:55 04 · two arrays added 1:14 05 · not a number 1:32 06 · sorting numbers 1:50 07 · map and parseInt 2:07 08 · typeof twice 2:24 09 · truthy strings 2:39 10 · chained comparison 2:56 Ten down: how to say it 3:13 11 · spreading a string 3:35 12 · one array, two names 3:52 13 · const does not freeze 4:07 14 · freeze is one level 4:22 15 · spread is a shallow copy 4:40 16 · var in a loop 4:56 17 · let in a loop 5:12 18 · this is the call site 5:29 19 · a detached method 5:47 20 · class field or prototype method 6:04 Twenty down: the follow up 6:21 21 · the fruit 6:38 22 · finally wins 6:54 23 · braces after an arrow 7:12 24 · returning an object literal 7:31 25 · the order of four lines 7:49 26 · where await splits 8:08 27 · what async returns 8:24 28 · max of nothing 8:40 29 · holes in a literal 8:59 30 · minus versus plus 9:15 Thirty down: when you are stuck 9:35 31 · keys are strings 9:51 32 · the order of keys 10:08 33 · what JSON drops 10:23 34 · a getter and a setter 10:42 35 · a shadowed var 10:58 36 · for in over an array 11:17 37 · three typeofs 11:32 38 · how far a question mark reaches 11:50 39 · nullish against or 12:06 40 · the equality round up 12:25 What forty puzzles are actually testing 12:44 JavaScript interview: forty output puzzles, answered. Forty questions. Each one is a few lines of JavaScript and one question. What does this log. The code appears, you get a moment to answer, then the real output lands. Green means y
Mark as watched Saved in this browser only.