Typescript Nested Functions In Javascript Javatpoint