DEV Community

How To Spell JavaScript

David Wickes on May 08, 2020

I thought I'd explain how to spell JavaScript, and go through some common mistakes developers encounter when writing the word. Javascript...
Collapse
Β 
ruthmoog profile image
ruthmoog β€’

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

Collapse
Β 
gypsydave5 profile image
David Wickes β€’

you are technically correct

Collapse
Β 
aminmansuri profile image
hidden_dude β€’ β€’ Edited

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.

Collapse
Β 
aminmansuri profile image
hidden_dude β€’ β€’ Edited

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

Collapse
Β 
gypsydave5 profile image
David Wickes β€’

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" πŸ˜‰

Thread Thread
Β 
aminmansuri profile image
hidden_dude β€’ β€’ Edited

;)

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

Thread Thread
Β 
gypsydave5 profile image
David Wickes β€’

Lisp is not OO.

🀨

I look forward to convincing you otherwise!

Collapse
Β 
pandaquests profile image
Panda Quests β€’ β€’ Edited

You forgot "JS"

Collapse
Β 
patarapolw profile image
Pacharapol Withayasakpunt β€’

I have seen Java Script as well.

Collapse
Β 
peerreynders profile image
peerreynders β€’ β€’ Edited

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.

Collapse
Β 
jvarness profile image
Jake Varness β€’

Elm

Collapse
Β 
gypsydave5 profile image
David Wickes β€’

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

Collapse
Β 
pepkin88 profile image
Marek Pepke β€’

So is ClojureScript.

Collapse
Β 
nikoheikkila profile image
Niko HeikkilΓ€ β€’

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

Collapse
Β 
gypsydave5 profile image
David Wickes β€’

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

Collapse
Β 
drbearhands profile image
DrBearhands β€’

Congratulations! I didn't know you'd become a father!

Thread Thread
Β 
gypsydave5 profile image
David Wickes β€’

Thank you!

Collapse
Β 
mdamaceno profile image
Marco Damaceno β€’

JScript would be nice!

Collapse
Β 
gypsydave5 profile image
David Wickes β€’

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

Collapse
Β 
jsn1nj4 profile image
Elliot Derhay β€’
Comment.create("Here, take your like.");
likeCounter.increment();
Collapse
Β 
thisdotmedia_staff profile image
This Dot Media β€’

Haha love this!

Collapse
Β 
ingeborgsjon profile image
Andreas Larsson β€’

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.

Collapse
Β 
gypsydave5 profile image
David Wickes β€’

Hahahaha - brilliant! Lovely to see a language resist branding πŸ˜‚

Collapse
Β 
adam_cyclones profile image
Adam Crockett πŸŒ€ β€’

Actually typescript is spelt Typescript not TypeScript 🀣 makes matters worse

Collapse
Β 
adam_cyclones profile image
Adam Crockett πŸŒ€ β€’

Actually I was wrong, it changed to TypeScript

Collapse
Β 
tplive profile image
Thomas β€’