Pregunta de entrevista de Baidu

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