Typescript Last Character Javascript Tutorial W3schools