Tryzens interview question

Javascript closure, ES6, Typescript etc