Ex. 7.1: Primitive Unions

Adjust the following function to accept the three main JavaScript primities: string, number, and boolean. Then, create any logic which ensures that the return value is always a number:

Loading...