Domanda di colloquio di Baidu

Write a function to determine the type of JavaScript variables by hand.