結果 : difference between pure and impure functions in javascript