Loading...
「ツール」は右上に移動しました。
利用したサーバー: wtserver1
0いいね 41 views回再生

Day 25.4: Advanced JavaScript (Side Effects, Pure Function and Impure functions)

What Is A Pure Function?
The definition of a pure function is:
1.The function always returns the same result if the same arguments are passed in. It does not depend on any state, or data, change during a program’s execution. It must only depend on its input arguments.
2.The function does not produce any observable side effects such as network requests, input and output devices, or data mutation.


Pure functions always returns the same result if the same arguments are passed in. It does not depend on any state, or data, change during a program's execution. It must only depend on its input arguments . They do not have any side effects and do not modify the arguments which are passed to them.

コメント