Jay walking laws are slowly being walked back in some places.
The history of such laws are interesting, by the way.
That said, most of the time and in most places I've been, the de facto reality is that it's essentially lawless. Neither pedestrians nor drivers are being policed effectively and they all kind of do whatever.