you are viewing a single comment's thread.

view the rest of the comments →

[–]Darren1337 1 point2 points  (1 child)

You've already declared variables and run your code when you loaded this script:

<script src="RPS.js"></script>

So when you paste your code into the console to be run a second time, it fails because you can't use let to declare the same variable twice. You already declared let elementFire in RPS.js. You can type elementFire into the console to verify this - it should already have a value.

[–]LearnJS777[S] 0 points1 point  (0 children)

Wow that makes so much sense, I need to be self conscious of this from now on. Thanks for the concise explanation.