React Redux: Difference between revisions
Jump to navigation
Jump to search
Created page with "= Pure Functions * like static is c#/c++ only using inputs to produce outputs function multiply(a, b) { return a * b; }" |
No edit summary |
||
Line 1: | Line 1: | ||
= Pure Functions | =Pure Functions= | ||
* like static is c#/c++ only using inputs to produce outputs | * like static is c#/c++ only using inputs to produce outputs | ||
<syntaxhighlight lang="javascript"> | |||
function multiply(a, b) | function multiply(a, b) | ||
{ | { | ||
return a * b; | return a * b; | ||
} | } | ||
</syntaxhighlight> |
Revision as of 03:56, 23 May 2020
Pure Functions
- like static is c#/c++ only using inputs to produce outputs
function multiply(a, b)
{
return a * b;
}