une expression de fonction en javascript
var addition = function(a, b) { return a + b; }; var calcul = addition(2, 5) ;
Here is what the above code is Doing:
1. We create a function called addition that takes two parameters, a and b.
2. We return the sum of a and b.
3. We create a variable called calcul and assign it the result of calling addition with the arguments 2 and 5.