--- title: "Which came first, Harry Potter or JavaScript?" description: "Harry Potter vs JavaScript: JavaScript came first, by 2 years — 1995 against 1997. What happened in each case, and why the dates are often given differently." url: https://atoneplace.net/which-came-first/harry-potter-vs-javascript/ site: "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 - [Apple or JavaScript?](https://atoneplace.net/which-came-first/apple-vs-javascript/) - [Apple or Harry Potter?](https://atoneplace.net/which-came-first/apple-vs-harry-potter/) - [the internet (ARPANET) or JavaScript?](https://atoneplace.net/which-came-first/arpanet-vs-javascript/) - [email or JavaScript?](https://atoneplace.net/which-came-first/email-vs-javascript/) - [Java or JavaScript?](https://atoneplace.net/which-came-first/java-vs-javascript/) - [JavaScript or Microsoft?](https://atoneplace.net/which-came-first/javascript-vs-microsoft/) - [JavaScript or the Macintosh?](https://atoneplace.net/which-came-first/javascript-vs-macintosh/) - [JavaScript or Windows?](https://atoneplace.net/which-came-first/javascript-vs-windows/) - [JavaScript or the World Wide Web?](https://atoneplace.net/which-came-first/javascript-vs-world-wide-web/) - [JavaScript or Python?](https://atoneplace.net/which-came-first/javascript-vs-python/) - [JavaScript or Netflix?](https://atoneplace.net/which-came-first/javascript-vs-netflix/) - [JavaScript or Wikipedia?](https://atoneplace.net/which-came-first/javascript-vs-wikipedia/) ## Sources - Wikidata — Wikimedia Foundation (https://www.wikidata.org/) [CC0 1.0]