MouseHunt - Spooky Shuffle Tracker

Play Spooky Shuffle more conveniently by keeping track of what you've already uncovered

< Feedback on MouseHunt - Spooky Shuffle Tracker

Question/comment

§
Posted:

Great script, but a bug

The second for loop uses "var i", which conflicts with the "use strict". Changing everything inside that loop to "j" makes everything work perfectly!

Rani KheirAuthor
§
Posted:
@chrylis

Does it not work with you? It should still work, even if it says there's an issue.

'use strict' won't prevent re-setting vars previously set. What you could be seeing is a linter suggestion?

Alternatively I can declare i elsewhere (earlier in the code) and remove the 'var' in both for loops. It should still work either way since both for loops don't touch one another.

Post reply

Sign in to post a reply.