Community

Start a Thread


Notifications
Subscribe You’re not receiving notifications from this thread.

CreateFactories function call

Challenges • Asked about 5 years ago by flightPlan

flightPlan Commented on Aug 28, 2019:

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

Jake from AlgoDaily Commented on Sep 24, 2019:

Hi Samatha,

You can use a simple console.log function like this:

js
var logger = function(message) {
  console.log(message);
};