To pass a function argument without calling her?

How in js to pass a function argument? You need to:
arg = function
drugabuse(arg)
April 4th 20 at 13:02
1 answer
April 4th 20 at 13:04
Solution
Here it is:
function b(f){
//f-function, you can for example call of f()
}
const a = function(a,b){
 return a+b;
};
b(a);
This is a function expression. - orlo.Daniel15 commented on April 4th 20 at 13:07
@orlo.Daniel15, in this example, no difference. if you replace const a = function(a,b){ for function a(a,b){ nothing will fall off. - emmanuelle_Koelpin commented on April 4th 20 at 13:10
@emmanuelle_Koelpin, of course, just a friend edited the answer. - orlo.Daniel15 commented on April 4th 20 at 13:13
yeah, edited.
Realized that was wrong. - alphonso_Herz commented on April 4th 20 at 13:16
How can I call from b to f? - Trisha commented on April 4th 20 at 13:19
@Trisha, as usual, f(). - alphonso_Herz commented on April 4th 20 at 13:22
I mean, as from b to cause the transmitted argument there - Trisha commented on April 4th 20 at 13:25
@alphonso_Herz, understood - Trisha commented on April 4th 20 at 13:28
@Trisha, f is an argument.
Functions the same data type as the conventional numbers and strings. - alphonso_Herz commented on April 4th 20 at 13:31

Find more questions by tags JavaScript