Challenges • Asked about 5 years ago by flightPlan
For this challenge/exercise:
https://algodaily.com/challenges/closures-and-dependency-injection
How would I get this createFactories(logger) function to work. I'm not sure of what to put as the argument in place of 'looger' parameter in the function. Thanks.
Samatha
Hi Samatha,
You can use a simple console.log
function like this:
var logger = function(message) {
console.log(message);
};