programming languages - What does Crockford mean: "Javascript depends on global variables for linkage"? -


In the javascript: good parts , Crockford writes "Dependent on global variables for JavaScript Linkage "I understand that in Javascript if you declare a variable outside the function, then it is" in "- which means that you can access it anywhere in the program. I understand how many limits in the C ++ program you can reach a variable (regardless of its scope). With this, what does corkford mean?

I think what they mean is that global variables are how you communicate with libraries. Jquery uses global variable $, underscore usage_, etc. You link to LBS with the global name.


Comments

Popular posts from this blog

Member with no value in F# -

java - Joda Time Interval Not returning what I expect -

c# - Showing a SelectedItem's Property -