← Back to archive

Stdle #176 · scope · 2026-11-23

What does this JavaScript snippet output?

A past puzzle — fully playable. 4 attempts, hints on wrong guesses.

function Animal() {}
const a = Object.create(Animal.prototype);
console.log(a instanceof Animal, a instanceof Object);
Scope
4 attempts left

Answer & explanation