結果 : how to reset a variable to 0 in javascript