New course! Every coder should learn Generative AI!
Try a free lesson0
How function can be used as arguments to other function
2 Answers
+ 1
Thanks man
0
JS example:
let x=1;
function two(){
return 2;
}
function add(a,b){
return a+b;
}
document.write(add(two(),x)); //output 3