Capgemini Invent interview question

javascript closures, IIFE and some angular basic questions