Handle variables that can be multiple types using TypeScript Union Types. Learn how to write flexible functions that safely accept different data types.