Ok now try asking it to do something non-trivial and not related to web development and see what happens lol
This really isn't true for any non-trivial project. If you want a basic CRUD app maybe, maybe. But anything more complicated or novel than that and the LLM isn't doing much aside from boilerplate for you.
they absolutely don't reward these dogs for mistakesWhat makes you say that? There is pretty strong evidence that they do.
FWIW you could do this with the localStorage API.