Hacker News new | ask | show | jobs
by oars 1801 days ago
I'm relatively new to web development but how were you able to get a link to this JavaScript code?

I thought this logic was usually done in the backend and can't be viewed from the front? E.g. right click > view source in Chrome only shows HTML and some frontend JS doesn't it?

1 comments

Just Chrome dev tools, either the debugger or the network tab. It is front-end code.

Normally, yeah, you wouldn't see individual purchase data in front-end code...that would be backend code returning just json/xml/whatever that the browser would consume.

That it's hardcoded in the client is why it's funny and obviously fake data.