結果 : using a function in javascript