Visualize this invocation

Let's visualize the function logger executing with an argument.

The first step is declaring the function. For that, we use a statement function, grandly declared to the local scope house.

There is now a record of a genie called logger, with the coordinates of a reference island pointing to the function object. That function has a parameter called str. This isn't a genie - it's not an expression! It's simply a name on an empty seat.