How to create anonymous function and pass it as an argument to another function in Node.js

1 Answer

0 votes
[435, 20, 50, 9, 7].forEach(function(n) {
    console.log("n = : " + n);
});
 
 
 
 
/*
run:
 
n = : 435
n = : 20
n = : 50
n = : 9
n = : 7

*/

 



answered Dec 18, 2021 by avibootz

Related questions

...