How To Spell JavaScript
David Wickes

David Wickes @gypsydave5

About: British. Strong opinions held weekly. No, that's not a typo. Teaches when and where and what I can.

Location:
London
Joined:
Apr 13, 2018

How To Spell JavaScript

Publish Date: May 8 '20
53 27

I thought I'd explain how to spell JavaScript, and go through some common mistakes developers encounter when writing the word.

Javascript

Nope, you need to capitalize the 's'. It's camel case, like all the worst programming languages.

JavaSCRIPT

Too many capital letters now.

java_script

Go back to writing Python or Ruby or whatever.

JAVASCRIPT

  1. NO IT'S NOT COBOL
  2. OR BASIC
  3. GOTO 10

java-script

Although Brendan Eich wanted to write "Scheme for the browser", he didn't and it isn't. So no kebab case for you.

ECMAScript

Oooooh check you out, smarty pants. Technically this is correct, but in reality it sounds like a skin condition. So no.

TypeScript

Well done, you've got the camel case right. But you've forgotten how to spell "Java" and it looks like you've written any randomly all over your code.

ClojureScript

Not only can't you spell "Java", now you can't spell "Closure" and you're putting the parentheses in the wrong places.

CoffeeScript

Only valid in 418 responses.

ActionScript

How old are you?

NodeJS

NodeJS isn't the name of a language; it's the name of a browser project that got badly out of control.

Java

I mean, given that you're probably writing your JavaScript like it's Java this is at least honest.

JSX

The 'X' stands for "wtf is all this HTML doing in my JavaScript?"

ESNext

You're writing a language from the future. Stop it. What are those ridiculous looking operators doing anyway? You really need them? You really missed waiting for your code to compile so much that now you're compiling your JavaScript into JavaScript using JavaScript?

LiveScript

Brendan? Is that you?

Comments 27 total

  • Pacharapol Withayasakpunt
    Pacharapol WithayasakpuntMay 8, 2020

    I have seen Java Script as well.

  • Panda Quests
    Panda QuestsMay 8, 2020

    You forgot "JS"

  • Niko Heikkilä
    Niko HeikkiläMay 8, 2020

    But what about PureScript for all of us geeks who can't tolerate side-effects in life?

    • David Wickes
      David WickesMay 8, 2020

      I only use PurrScript. Because I love cat-egory theory...

  • Marco Damaceno
    Marco DamacenoMay 8, 2020

    JScript would be nice!

    • David Wickes
      David WickesMay 8, 2020

      JScript would be JavaScript trying to do 90s rap...

  • ruthmoog
    ruthmoogMay 8, 2020

    It is PascalCase since the J is capitalized, whereas camelCase has a small head and then humps.

  • This Dot Media
    This Dot MediaMay 8, 2020

    Haha love this!

  • Elliot Derhay
    Elliot DerhayMay 9, 2020
    Comment.create("Here, take your like.");
    likeCounter.increment();
    
  • Jake Varness
    Jake VarnessMay 9, 2020

    Elm

    • David Wickes
      David WickesMay 9, 2020

      Elm isn't a language; it's an abstract syntax tree.

  • hidden_dude
    hidden_dudeMay 10, 2020

    Camel case was heavily used in Smalltalk (and probably the first introduction for most people). Which is definitely not among the "worst" languages.

    It was so ahead of its time that languages like JavaScript and Python and others are still trying to catch up with it.

    • hidden_dude
      hidden_dudeMay 10, 2020

      Begin: opinionated comment

      Maybe we should call it "hidden_dude's 11th rule":

      "Any sufficiently evolved OO language ends up turning into a poorly implemented syntax mishmash of OO and functional features that are only half of expressive as Smalltalk with none of its elegance"

      All languages want to become Smalltalk, that's why in the last 3 decades we've slowly seen them add classes, then things like VMs and garbage collection, and more recently things like closures and map/reduce (collect/inject), dynamic debugging, etc.

      But even the "cleaner" languages like Python are still bogged down by their inferior syntax.

      End: opinionated comment

      • David Wickes
        David WickesMay 10, 2020

        Sorry, this is a post about how to spell JavaScript. I don't know if I can help you with your consistent misspellings of Lisp as "Smalltalk" 😉

        • hidden_dude
          hidden_dudeMay 10, 2020

          ;)

          Lisp is not OO. Smalltalk included what Lisp invented. And nobody in their right mind likes Lisp syntax.. too many parenthesis.

          • David Wickes
            David WickesMay 11, 2020

            Lisp is not OO.

            🤨

            I look forward to convincing you otherwise!

  • peerreynders
    peerreyndersOct 23, 2020

    Spelling "JavaScript" can get you into trouble with Oracle.

    twitter.com/jaesustein/status/9865...

    So like it or not spelling "ECMAScript" (ES) is less hassle.

  • Andreas Larsson
    Andreas LarssonJan 18, 2021

    Well, depending on which language you are writing different options might be valid. For example in Swedish the valid spelling is Javascript because all proper nouns should have a capital letter in the beginning and the rest should be lower case. Other examples are Ikea and Iphone.

    • David Wickes
      David WickesJan 19, 2021

      Hahahaha - brilliant! Lovely to see a language resist branding 😂

  • Adam Crockett 🌀
    Adam Crockett 🌀Apr 16, 2022

    Actually typescript is spelt Typescript not TypeScript 🤣 makes matters worse

Add comment