There was one huge order over many years that cause the continuous production. This doesn’t include variants sold to several other nations.
For the I series: “A senior IAF official said that the F-35's stealth may be partly overcome within 10 years despite a 30 to 40-year service life, thus Israel's insistence on using their own electronic warfare systems”.
The Accidents and notable incidents is an interesting read on https://wikipedia.org/wiki/Lockheed_Martin_F-35_Lightning_II
I do understand it would lose every time to an F-16 in a dogfight, but it would have vaporised that F-16 long before visual range.
Afaics it has more operational capability than the previous generation of warplanes, in ways that matter to military planners.