>> I have, on multiple occasions, introduced bugs that are orders of magnitude wackier than this.
Those would make a nice blog post. I've done some stupid things and seen some unexpected results, but I've never encountered the likes of this "accidentally" incrementing price thing. ;-)
It could be an index error or a misuse of references, where product B is supposes to be product A + 10.
It could be that some local taxes or fees comes out to $10, and the client code does `price += taxes` on page load.
There could be code to round up to a $10 increment, and then subtract 2 cents so the prices are all $X9.98, but the rounding logic is incorrect. Since this is JS, they will be using floating point prices. That is a minefield in itself.
I'm not saying it's definitely a bug. But it trivially could be.
>> It could be an index error or a misuse of references, where product B is supposes to be product A + 10.
But why would ANY price be determined in part by the users browser. It gets it right the first time, so why would page reload do anything different? This makes no sense.
Okay slowly turning the 800 pound steel beam 1 degree per minute, and now it's trying to toss it across the room...
Boss we need a new $1,000 dollar motor!, and maybe a new wall.