Is JavaScript reinventing Java? – Web Applications Stack Exchange

After years trying to relearn JavaScript and found that with ES6, JavaScript community tried to move from un-typed language to typed language (such as Java/C#) to address issues that had prevented it from becoming a language for enterprise.

Java’s first use case was to let Applets run on browsers and give them capability to show dynamic content. Could not browsers just support Java again (natively this time) rather than reinventing the wheel or there is something else that I missed?