結果 : how to take dynamic input in javascript