Pregunta de entrevista de Gainsight

Hoisting related question Angular custom directives Write a simple promise code?