Does anyone knows why Firefox keeps giving me this redeclaration of const x error?
In the console of Firefox, I wrote the follow code. However when I run it the first time it was fine. It is NOT fine the 2nd time or 3rd time and subsequent time. What is not fine is that it give me an error redeclaration of const x. I don't know why because I am not re-declaring x. For context, I am still trying to study Javascript for which it is driving me crazy.
const x = 5;
console.log(x*8);
result of running following code
I am so frustrated I want to pull all my hair out. Anyway, I was following the youtube video that recommended that to follow along, I should use Firefox. After fiddling with it for awhile, I manually refresh the page and re-run the code. After refresh the page each time I run the code, I did not get an error. However, my question is why do I have to manually refresh the page for it to work everytime? Is there an auto refresh? Does it only give me an error in const variable? Is this a bug or is this normal for Firefox?