How Does The Switch Statement Work In TypeScript?