Typescript Get Input Text Value Javascript Interview Question