結果 : how to pass array as function parameter in javascript