Closures and Prototypes

Predict what a constructor with a local function, an own method and a prototype method returns, then rewrite it so every method works.

Asked in LinkedIn frontend interviews