Prevent Node.js repl from printing output

javascript, node.js, read-eval-print-loop

Solution

Why don't you just append `; null;` to your expression?

As in

new Array(10000); null;

which prints

null

or even shorter, use `;0;`

Problem

If the result of some javascript calculation is an array of 10,000 elements, the Node.js repl prints this out. How do I prevent it from doing so? Thanks

Original source