結果 : valid two methods of array object in javascript with example