There was one question where I was asked "without running it, what will this 10-line javascript program write to the console?". It contained a bug where a function "accidentally" modified a global variable "i" instead of making a local "i", and the global was later printed to console. After correctly guessing the (buggy) output I was asked to fix the program which just needed the "var" keyword to be added inside the function.