I am failing to find sound reasoning behind the answer, which is essentially "Just learn Javascript, ok?".
I am failing to find sound reasoning behind the answer, which is essentially "Just learn Javascript, ok?".
An 8-year run is pretty darn good for a technology in our industry. Pretty much the only thing that's bested it is C's impressive 30+ year run. And C was really only the hot, commercially successful language to learn during the late microcomputer era of 1985-1991, before which the hot language was assembly (for microcomputers) or Lisp (for enterprise), and after which C++ took over the microcomputer market.
Well, I see a failing of the reasoning behind your substitution of JS with Java too, which you made only because both languages are touted as "just learn that". I find that looking at similarities never tells us anything important ("A baseball is like a planet, in that it's round"). What's important is knowing the differences.
And the differences are many.
Javascript is the de facto AND de jure standard on the web, while Java wasn't.
Javascript is used all over the web -- Java applets never really caught on, while Java only caught on for enterprise and server-side stuff really.
Java was the child of a single company, and not a very big one at that, Javascript is a standard and has competing implementation from all three gorillas (Google, MS, Apple).
Java had a huge competitor on the same domain, .NET, and several smaller competitors for web apps and server work (RoR, PHP, Node, now Go etc). Javascript has no competitor (Flash died, and Dart is Google only, and compiles to JS anyway).
It's not an industry standard, and no other vendor cares about implementing the VM or supports the core language.
What actually runs on IE, Safari, FF etc is Javascript, not Dart. "Dart" only runs secondarily as a javascript target -- one of tens, and not a very popular one even at that.