JavaScript was created in 1995 by Brendan Eich, a programmer at Netscape Communications. Initially, it was called "Mocha," but was later renamed to JavaScript. The language was developed to add interactive features to web pages and to make web development easier. Over the years, JavaScript has evolved and has become a popular language for web development.