Although, there are some ways of making hacking harder by having an anonymous scope where the code runs inside. But, who cares? If you cheat at a single player game, well, it’s no different than stacking the cards to your advantage before you play Solitaire

25+ years ago you could hack games by setting the right values at the right positions of the game binary (there were only a few kB of code to disassemble). Magazines had articles listing memory locations and values. JavaScript hacks belong to that tradition and in the spirit of these new times of higher level languages, they’re easier and quicker to perform :-)

Hehe, right on pmontrasio. Blocking cheats on a client side scripting language is simply impossible. Even if you made some uber impressive system that figured out if the player was getting score “too fast” and thus has to be cheating, the player could simply delete the said anti cheating system. As mentioned, everything is entirely client side, and it’s not compiled in advance.