I am learning JavaScript and have been doing a lot of testing in the Chrome console. Even if I clear the console, or use any of the commands I\'ve seen in other threads (
Things have changed a lot on chrome dev tools. delete name does not help;
//for example if you have declared a variable
`const x = 2;`
//Now sometime later you want to use the same variable
`const x = 5` you will get an error
//if you try to delete it you will get false
delete x;
But a reload of page while console is still open. will refresh the console context and now the x is not available and you can redefine it. Hope this helps someone testing or trying things on the console of chrome. i use it a lot.