Salesforce Interview Question

prototypal inheritance and scoping in JavaScript