Genpact Interview Question

Basic javascript- hoisting, bubbling etc and in angular- directives, pipes