JavaScript is a single-threaded, non-blocking, asynchronous and concurrent language, because DOM-tree is not thread-safe.
When a function is invoked, an execution context is created. This includes information about where the function was called from(call-stack), how the function was invoked(call-site), what parameters were passed and what this reference was bound to.
邹明潮 About
{ "name": "邹明潮", "description": "Learn to code things", "version": "0.0.1", "keywords": ["Noder", "Frontend Developer"], "location": "Utica, NY", "company": "Not Found"}
Scope is the set of rules that determines where and how a variable (identifier) can be looked up.
Objects come in two forms: the declarative(literal) form and the constructed form.
var myObj = { key: value};
var myObj = new Object(); // Object.create(null);myObj.key = value;
Scope is one of fundamental building blocks in the Angular1.x framework. Its main purposes are the followings: sharing data, broadcasting and listening events, and watching for changes in data. Poking around the source code of the scope assists me in having a…
Promise is an attempt to address the problems caused by callback. It bundles the future results of an asynchronous call into an object. AngularJS Promise is implemented by pairs of deferred and promise objects that are made of a promise chain, and the…
Dependency injection is a glue that holds every other components together. It has three different level as the followings are shown: