Evaluating code in place

How could we make this happen? I’m tired of console.logging.

The static way:

  1. Select expression arr.
  2. Get value of arr from its definition, then run through the code up to the selected arr.
  3. Swap arr for its value.