I think that JavaScript is a good one to know! Beyond just web interfaces, I've used JS to write native apps for iOS and Android with Titanium, Window and OSX applications with Election, and Tizen Watch apps (Samsung Galaxy). If I'm doing backend stuff, I still prefer PHP.
Regarding AI, I've played with ChatGPT. It's impressive and I think that there are a lot of folks out there that want to underestimate it. I think that it is a bigger competitor to other creative professions over software development today, though.