結果 : javascript create new instance of type