Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Is it JavaScript or Javascript? [closed]

Tags:

javascript

I know this isn't programming-related, but I'm curious what this community thinks about the subject. My understanding is that JavaScript is what the language is named. Lately, it seems to have become trendy to write it Javascript. Who are we to rename the language? I'm interested to hear if there is a cogent argument for changing the capitalization. Thanks for indulging me!

like image 461
Andrew Hedges Avatar asked Oct 21 '10 16:10

Andrew Hedges


People also ask

Is it JavaScript or JavaScript?

The official name is JavaScript, though it really doesn't matter in practice :) You can view the documentation here.

What is closed in JavaScript?

A closure is the combination of a function bundled together (enclosed) with references to its surrounding state (the lexical environment). In other words, a closure gives you access to an outer function's scope from an inner function.

Why do we need JavaScript closures?

In JavaScript, closures are the primary mechanism used to enable data privacy. When you use closures for data privacy, the enclosed variables are only in scope within the containing (outer) function. You can't get at the data from an outside scope except through the object's privileged methods.


2 Answers

It's JavaScript.

like image 114
Rocket Hazmat Avatar answered Sep 25 '22 05:09

Rocket Hazmat


The official name is JavaScript, though it really doesn't matter in practice :)

You can view the documentation here. Note that JavaScript is not the same as ECMAScript as the other answers suggest, it's an implementation of ECMAScript.

like image 40
Nick Craver Avatar answered Sep 25 '22 05:09

Nick Craver