This if false, I work at a company that still employees several hundred cobol developers onshore, and many hundreds more offshore. This is down from > 1,000 several years aog. Cobol pay is mediocre, here it's around $75k at the 10 year mark. Plus they're subject to being RIF'ed and any time (reduction in force, layed off).
The idea that there's a shortage is false too. In the local market there are several hundred if not thousands of cobol developers who have been laid off over the past couple of decades. Most probably left the field entirely.
I see no reason to believe this local experience is not typical of the US in general.
They've seen countless jobs come & go, but they choose to live where they are for long-standing reasons which are often harder to let go of the older they get. They've moved away from the hustle and bustle and are happy with their choice.
I have personally met older people with higher end skills (that would command a six figure salary in certain cities) choosing to work as janitors at a local institution instead of chasing that dollar, because they love their town and lifestyle and the cost of living is low.
Edit: Forgot to add, I also know a guy over 70 who flies all over the place doing COBOL work and is making bank doing it.
After the Freudian slip I think this is the first time I come across a Boolean slip.
I meet hundreds every day, and nary any web developers. I'm working in an embedded shop though, so YMMV on personal experience here.
I learned some JS in school but haven't needed it since. Except writing some extensions, which was easy enough to learn in an afternoon if you know C-like languages. (I used TypeScript to be fair, much easier for me, why anyone would use pure JS is beyond me).
I'm not sure TIOBE is useful for anything either. But a lot of legacy programs in C need maintenance. A lot of government software, flight control systems, banking systems etc. are probably still in large parts C.
Just look at the salaries of COBOL developers (where is that on TIOBE again?), and you'll see that maintenance is big business. And that language is as ANCIENT as ALLCAPS.
Looking as C is still at the heart of almost everything, I think maintenance work will still be a big consideration for the next 50 years. It might not be sexy or what you want to do though.