結果 : how to store user input in an array javascript