nodeScratchpad icon indicating copy to clipboard operation
nodeScratchpad copied to clipboard

Show evaluated output without console.log

Open webdevian opened this issue 7 years ago • 2 comments

It would be good if it followed the behaviour of the node repl and dev tools console and just evaluated whatever code you put in and printed the output.

There perhaps would need to be a separate output box for console.log output if it is used.

screenshot 2018-05-24 09 01 26

webdevian avatar May 24 '18 08:05 webdevian

Makes sense to replicate the behaviour of Node REPL, perhaps a switch to toggle between REPL mode & current mode.

vsaravind007 avatar May 24 '18 08:05 vsaravind007

Yeah. I know for quick JS snippets I normally go to the repl for (i.e. what happens when I cast x to type of y) not having to include a console.log around it is useful

webdevian avatar May 24 '18 08:05 webdevian