結果 : javascript define type in function