結果 : how to return a value from an array in javascript