Its the concepts and fundamentals that are important. I bet you that most javascript and ruby developers dont know what an AST is and how a regex can be transformed into a state machine. Not even to mention how lambda calculus influenced lots of languages.
Anyway. Languages come and go. Frameworks come and go. However the problems associated with computer science, like distributed computing, scaling, mobility. They will stay.
The best software engineers are the ones that understand the basics. And most importantly: know how to use them in practice.
A good software engineer will choose a framework language depending on the domain / problem that needs to be solved.
Not because they like it.