Join GitHub today
GitHub is home to over 28 million developers working together to host and review code, manage projects, and build software together.Sign up
Feature Request: option for only-last-statement evaluation #24
I would like an option to switch on a mode like how browser devtools consoles only evaluate the last statement in a snippet, because sometimes you have a bunch of statements in a snippet of code that you don't want to evaluate, but only want to evaluate the last statement.
Consider the differences between these two:
In RunJS, it outputs the result of the
Sometimes, I want the behavior of the former, sometimes I want the behavior of the latter. It would be really nice to have an option to toggle between both modes.