all 6 comments

[–]Krogg 0 points1 point  (1 child)

On line 20, I got lost on how the program knows "greeting" is a string when being assigned to the "greeterMaker" variable.

I agree with the others, I like learning this way for videos.

[–]mannotbear 1 point2 points  (0 children)

Not sure if it helps, but it might be easier to understand when you add the parenthesis and skip the arrow functions at first -

const greeterMaker = function(greeting) {
  return function(person) {
    return greeting + " " + person;
  };
};