結果 : determine type of variable javascript