JavaScript will be replaced... eventually, in the distant future. But for now, and at least for the next decade or so, we can be sure that our knowledge in JavaScript will be useful.