Baidu interview question

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