Determine Data Type Accurately

# Introduction In this challenge, we'll create a `getType` function to accurately determine the data type of an input and return it as a string. The function should handle different data types like boolean, number, string, bigint, null, undefined, symbol, array, object, function, date, regexp, error, map, set, weakmap, and weakset. It's important that the function is correctly implemented and exported as specified. Let's begin by creating the `getType.js` file and writing the function.

|60 : 00

Click the virtual machine below to start practicing