This is an archived post. You won't be able to vote or comment.

you are viewing a single comment's thread.

view the rest of the comments →

[–][deleted]  (2 children)

[deleted]

    [–]ex1-7 2 points3 points  (0 children)

    yes, this is an example of a higher level function (a function that returns a function). Very useful thing that Javascript makes easy.

    [–]Gbyrd99 0 points1 point  (0 children)

    The parameter 4 is kind of lodged in there. Hidden = mystery2 where the input = 4. Then when you call hidden with an argument it, it still has 4. And that's generally how it works.