結果 : how to return type of variable in javascript