last

val last: Any?(source)

The last evaluation result from the REPL (assigned to the _ variable inside of the REPL).

See also

https

://nodejs.org/dist/latest-v22.x/docs/api/repl.html#repl_assignment_of_the_underscore_variable