SuperIce@lemmy.worldtoProgramming@programming.dev•Turns out, Java and JavaScript are not 'car' and 'carpet' --- ECMA-262 2025: 'ECMAScript syntax INTENTIONALLY resembles that of Java'English
7·
10 months agoIf you actually knew how to program both Java and JavaScript (originally called Mocha btw), you would know that they are very different languages. Saying that JS was intended to have a similar syntax to Java is like saying Java was intended to have a similar syntax to C. They’re both true, but it doesn’t really mean anything.
It wasn’t even called JavaScript originally, it was called Mocha. It was then renamed to LiveScript before its original release. Then, Netscape wanted a licensing agreement with Sun to integrate Java into Navigator, and part of the agreement was to rename LiveScript to JavaScript with Sun holding the trademark for JavaScript. They also talked a lot about using JS to modify the properties and behaviors of Java applets in the 1995 press release, but that never really happened.