結果 : pure vs impure functions in javascript