At One Place

Which came first, Harry Potter or JavaScript?

Which came first, Harry Potter or JavaScript?
JavaScript
1995 — 2 years before Harry Potter

JavaScript came first, by 2 years. Brendan Eich wrote it in ten days for Netscape Navigator.

Side by side

Harry Potter JavaScript
Year 1997 1995
Date 1997-06-26
Category media technology
What happened Harry Potter and the Philosopher's Stone was published in the UK. Brendan Eich wrote it in ten days for Netscape Navigator.

Harry Potter

Bloomsbury published the first book in June 1997 with a print run of 500 copies, most of which went to libraries, after twelve other publishers had rejected the manuscript. The company's chairman gave the first chapter to his eight-year-old daughter, who demanded the rest. It came out the same year as Netflix was founded and a year before Google.

JavaScript

JavaScript was written in about ten days in May 1995, shipped in Netscape Navigator 2.0 later that year, and was called LiveScript until December, when Netscape renamed it as part of a marketing deal with Sun. It has nothing to do with Java beyond some borrowed syntax. Standardisation as ECMAScript followed in 1997, and the language spent a decade being treated as a toy before it became the most widely deployed programming language in the world.

Common questions

Which came first, Harry Potter or JavaScript?
JavaScript, by 2 years — 1995 against 1997.
When did Harry Potter start?
1997. Harry Potter and the Philosopher's Stone was published in the UK.
When did JavaScript start?
1995. Brendan Eich wrote it in ten days for Netscape Navigator.

Related pages

Sources

  1. Wikidata — Wikimedia Foundation (CC0 1.0)

How these figures are compiled and checked