Crockford made this claim in an interview last month:
Brendan Eich invented the language for Netscape in 1995, apparently in just 10 days. “In May I did 10 days of hard work, I didn’t sleep much,” Eich told the dot.JS conference in 2018. In 2012 Eich told Computer’s Charles Severance that: “I started making … a language. programming for HTML, for use by web designers and programmers, embedded directly into the web page … not like Java, which was a professional language where you ran real code with type declarations and had to write in a way that compiled. ” He added that “the name is a total lie. It is not so much related to Java as it is to a common ancestor, C, in syntax.
Eich called the work “urgent work,” but also said that “I knew there would be mistakes, there would be gaps, so I made it very malleable as a language. This allowed web developers to make it what they want it to be.
There are multiple reasons, including Eich’s foresight, ease of learning, and code tolerance that would be errors in many languages, such as comparing strings to numbers and getting a common sense result, although Eich later called it “a great regret, because it breaks an important mathematical property.
“Secondly, we need all browser manufacturers to adopt it and at the same time replace the DOM with a well-designed interface. Good luck.”