background preloader

JavaScript

Facebook Twitter

Make the Web Faster. The Google Hosted Libraries is a stable, reliable, high-speed, globally available content distribution network for the most popular, open-source JavaScript libraries.

Make the Web Faster

Google works directly with the key stakeholders for each library effort and accepts the latest versions as they are released. Libraries To load a hosted library, copy and paste the HTML snippet for that library (shown below) in your web page. For instance, to load jQuery, embed the <script src=" snippet in your web page. We recommend that you load libraries from the CDN via HTTPS, even if your own website only uses HTTP. Dojo snippet: site: dojotoolkit.org.

LimeJS

Badass JavaScript. TypeScript. Node.js. Learning JavaScript Design Patterns. Design patterns are reusable solutions to commonly occurring problems in software design. They are both exciting and a fascinating topic to explore in any programming language. One reason for this is that they help us build upon the combined experience of many developers that came before us and ensure we structure our code in an optimized way, meeting the needs of problems we're attempting to solve.

Design patterns also provide us a common vocabulary to describe solutions. This can be significantly simpler than describing syntax and semantics when we're attempting to convey a way of structuring a solution in code form to others. In this book we will explore applying both classical and modern design patterns to the JavaScript programming language. Target Audience This book is targeted at professional developers wishing to improve their knowledge of design patterns and how they can be applied to the JavaScript programming language. Acknowledgments Credits Reading We already use patterns everyday. JavaScript: The Definitive Guide, 6th Edition.

JavaScript: The Good Parts.

jQuery

JavaScript Patterns. Learning JavaScript Design Patterns. JavaScript pitfalls: null, false, undefined, NaN - MapbenderWiki. From MapbenderWiki Comparison operators Comparison via == Equality, regardless of type.

JavaScript pitfalls: null, false, undefined, NaN - MapbenderWiki

Comparison via === Identity, types must match. Pitfalls using comparison Evaluates to false in boolean operations. Var x = 0; var y = false; x == y → true x === y → false "" (empty string) Evaluates to false in boolean operations. Var x = ""; var y = false; x == y → true x === y → false null Evaluates to false in boolean operations. Var x = null; var y = false; x == y → true x === y → false undefined If a variable hasn't been declared or assigned yet (an argument to a function which never received a value, an object property that hasn't been assigned a value) then that variable will be given a special undefined value.

Evaluates to false in boolean operations. Var x; var y = false; typeof(x) → undefined (as a string) x == y → true x === y → false NaN Not a Number, generated when arithmetic operations return invalid results. Evaluates to false in boolean operations. Var x = 10/seventeen; x → NaN Source.