Frage im Vorstellungsgespräch bei Baidu

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