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!
The official name is JavaScript, though it really doesn't matter in practice :) You can view the documentation here.
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.
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.
It's JavaScript
.
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.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With