As you probably know, one can cheat this game's candy system by sending commands to the console.
For instance, if you click the link, you will see that your candy count increases slowly. Somebody using Google Chrome (I refer to Chrome specifically because I know the keyboard shortcuts; perhaps this can be done in Firefox or IE) who wants to cheat can press
Ctrl + Shift + I, navigate to
Console and send
candies.setNbrOwned(2147483647) to the console for a quick and easy sugar-high.
Can this pose a problem in other contexts? For instance, let's say that I have a website that sells widgets. Can somebody's balance (or even the price of my widgets) be altered through sending something like
userBalance = 2147483647 or
If it isn't possible, why is that the case? My first guess for why it might not be possible is because changed variables would be stored as local variables and wouldn't affect anything major -- kind of like changing elements through 'Inspect Element' features.
If it is in fact possible, through what means can it be done, and how does one prevent it?