Community

Ask A Question


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

CreateFactories function call

Challenges • Asked 5 months ago by flightPlan

Gravatar 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

Gravatar Jake from AlgoDaily Commented on Sep 24, 2019:

Hi Samatha,

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

var logger = function(message) {
  console.log(message);
};
Terms and Conditions | Privacy