Question d’entretien chez Baidu

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