Build a getType function that returns the correct type name for any JavaScript value.
Asked in frontend interviews at Google, Uber and ByteDance