Infogain interview question

Technical question on javascript and angularjs