結果 : example of pure and impure function in javascript