How to reset Firefox console without refreshing the page?

Viewed 5376

How can I reset a Firefox Web Console in order to be able to use variables already declared?

console.clear() will only clear the output. All variables already declared are sticking in memory. I'm trying to get rid of:

Error: "SyntaxError: redeclaration of..."
2 Answers

if refreshing the page will reset the console, then you can use location.reload() to refresh the page via console.

Related