logo

Quotes About JavaScript

Using JavaScript Error objects to reject promises can capture the call stack for troubleshooting
~ Daniel Parker
We are providing JavaScript training in Coimbatore With the help of JavaScript, developers can create applications that work in client-side and the server-side of web browsers. They can access and use the data in the web server, which is not readily accessible from a browser.
~ albartmarshal
The Ethereum client is literally a fork of Chromium's webkit backend. The idea is that users can build their own interfaces with HTML/JavaScript just like websites, and they will be viewable with the browser much like websites are viewable with the web browser.
~ Vitalik Buterin
Closures are a function along with a referencing environment.
~ Eric Freeman
Closures are often used to capture state for event handlers.
~ Eric Freeman
That's because the default prototype for any instance you create (assuming you don't change it) is Object.
~ Eric Freeman
JavaScript: When an event occurs, like the ones you've mentioned, that event is added to a queue. I don't even look at it until I've finished whatever I'm working on. That way I do everything correctly and safely and efficiently.
~ Eric Freeman
When you pass zero to setTimeout, you're asking JavaScript to run your timeout handler as soon as it possibly can — and this leads to your handler running as frequently as it possibly can.
~ Eric Freeman
Math is not a constructor, or even a function. It's an object. As you know, Math is a built-in object that you can use to do things like get the value of pi (with Math.PI) or generate a random number (with Math.random). Think of Math as just like an object literal that has a bunch of useful properties and methods in it, built-in for you to use whenever you write JavaScript code. It just happens to have a capital first letter to let you know that it's built-in to JavaScript.
~ Eric Freeman
JavaScript has a very powerful object model, but one that is a bit different than the status quo object-oriented language. Rather than the typical class-based object-oriented system, JavaScript instead opts for a more powerful prototype model, where objects can inherit and extend the behavior of other objects. What
~ Eric Freeman
JavaScript doesn't have a classical object-oriented model, where you create objects from classes. In fact, JavaScript doesn't have classes at all. In JavaScript, objects inherit behavior from other objects, which we call prototypal inheritance, or inheritance based on prototypes.
~ Eric Freeman
JavaScript creates all local variables at the beginning of a function whether you declare them or not (this is called "hoisting" and we'll come back to it later), but the variables are all undefined until they are assigned a value, which might not be what you want.
~ Eric Freeman
the truth is JavaScript actually makes two passes over your page: in the first pass it reads all the function definitions, and in the second it begins executing your code. So
~ Eric Freeman
Web Workers have a global function named importScripts that you can use to import one or more JavaScript files into your worker. To
~ Eric Freeman
Here's the short story: functions are objects in JavaScript. In
~ Eric Freeman
in JavaScript just about everything is an object underneath, even
~ Eric Freeman
By lexical scope we mean that JavaScript's rules for scoping are based purely on the structure of your code (not on some dynamic runtime properties). This means you can determine where a variable is defined by simply examining your code's structure. Also
~ Eric Freeman
A function without a return statement returns undefined.
~ Eric Freeman
If a variable is declared outside a function, it's GLOBAL. If it's declared inside a function, it's LOCAL.
~ Eric Freeman
When you link to multiple JavaScript files from your page, all the global variables are defined in the same global space.
~ Eric Freeman
If you assign a new variable without using the var keyword, that variable will be global, even if you are first assigning it in a function.
~ Eric Freeman
an important thing to know about JavaScript: there's one queue and one "thread of control," meaning there is only one of me going through the events one at a time.
~ Eric Freeman
In fact, there's a keyword in JavaScript named this, and that is exactly how you tell JavaScript you mean this object we're in.
~ Eric Freeman
A callback works like this: give a function to the object that knows about the event. When the event occurs, that object will call you back, or notify you, by calling that function. You're going to see this pattern in JavaScript for a variety of events.
~ Eric Freeman