Ask coding questions

← Back to all posts
Code window not running on console as expected
mikeah21 (1)

When I type code in node.js app and select run the console doesn't run the code, and instead gives a message regarding a variable that was run previously (already been declared message) that has nothing to do with the code I want to run.

Is there a way to clear out memory in repl to get rid of these messages that don't pertain to what I'm working on, so I can use the coding window for coding and the console window for output versus just the console window for both, because of the above problem?

Coder100 (17038)

Yeah of course, add this to the END.


it prints out the 'last statement', and that 'last statement' is an empty string!