typescript step by step with suitable examples(Part 3)