Pergunta de entrevista da empresa Bloomberg

A complex question on application of "this" in javascript, which I answered correctly. Use of Prmise