結果 : pure and impure function in javascript