background preloader

JavaScript documentation sites

Facebook Twitter

Inheritance and the prototype chain. JavaScript is a bit confusing for developers experienced in class-based languages (like Java or C++), as it is dynamic and does not provide a class implementation per se (the class keyword is introduced in ES6, but is syntactical sugar, JavaScript remaining prototype-based).

Inheritance and the prototype chain

When it comes to inheritance, JavaScript only has one construct: objects. Each object has an internal link to another object called its prototype. Essential JavaScript Links. The Two Pillars of JavaScript — JavaScript Scene. Before we get into this, allow me to introduce myself — you’re probably going to wonder who I think I am before this is over.

The Two Pillars of JavaScript — JavaScript Scene

I’m Eric Elliott, author of “Programming JavaScript Applications” (O’Reilly), host of the feature-length documentary film-in-production, “Programming Literacy”, and creator of the “Learn JavaScript with Eric Elliott” series of online JavaScript courses. I have contributed to software experiences for Adobe Systems, Zumba Fitness, The Wall Street Journal, ESPN, BBC, and top recording artists including Usher, Frank Ocean, Metallica, and many more.

Once Upon a Time I was trapped in the darkness. A Simple TODO list using HTML5 WebDatabases. On November 18, 2010, the W3C announced that Web SQL database is a deprecated specification.

A Simple TODO list using HTML5 WebDatabases

This is a recommendation for web developers to no longer use the technology as effectively the spec will receive no new updates and browser vendors aren't encouraged to support this technology. Many major browsers including Chrome, Safari, Opera and nearly all Webkit based mobile devices support WebSQL and will likely maintain support for the foreseeable future. Introduction Web Databases are new in HTML5. Web Databases are hosted and persisted inside a user's browser. This tutorial is also available written using "IndexedDB", the replacement offline storage technology. The example code in this article demonstrates how to create a very simple todo list manager. Perfection Kills. What you should know about JavaScript regular expressions. Regular expressions in JavaScript may not always be intuitive.

What you should know about JavaScript regular expressions

I aim to provide some clarity by providing examples about things I have found myself getting stuck on. This post covers a few topics including state in regular expressions, regular expression performance and various things that have tripped me up. regular expressions are stateful Regular expression objects maintain state. JavaScript — The weird parts. Writing code for humans. Are you bad, good, better or best with Async JS? JS Tutorial: Callbacks, Promises, Generators. Tutorials Round-Up: Ajax, CSS, PHP and More. Advertisement Coding or designing a page, it’s always nice to have some basic templates you can quickly modify or adapt to your needs.

Tutorials Round-Up: Ajax, CSS, PHP and More

However, at least once you have to know, how to create this “universal” template. In this case tutorials prove to be an ultimate solution, particularly if you just want to get an idea how something works and where to start from. In fact, you don’t have to re-invent the wheel all the time – you can use existing solutions, modify and improve them and publish them as well – just the way other people did it for you. Impressivewebs/frontend-feeds. Learn JavaScript: — JavaScript Scene. There are so many JavaScript resources available out there, it’s hard to understand how much of it overlaps and how much is redundant.

Learn JavaScript: — JavaScript Scene

Not to mention the process of weeding out bad information. RequireJS made ridiculously easy, in just 10ish minutes - Yazin - 0xTech. Understanding RequireJS for Effective JavaScript Module Loading. Modular programming is used to break large applications into smaller blocks of manageable code.

Understanding RequireJS for Effective JavaScript Module Loading

Module based coding eases the effort for maintenance and increases reusability. However, managing dependencies between modules is a major concern developers face throughout the application development process. RequireJS is one of the most popular frameworks around for managing dependencies between modules. This tutorial examines the need for modularized code, and shows how RequireJS can help. Read JavaScript Allongé. A Pull of the Lever: Prefaces “Café Allongé, also called Espresso Lungo, is a drink midway between an Espresso and Americano in strength.

Read JavaScript Allongé

There are two different ways to make it. The first, and the one I prefer, is to add a small amount of hot water to a double or quadruple Espresso Ristretto. Like adding a splash of water to whiskey, the small dilution releases more of the complex flavours in the mouth. “The second way is to pull an extra long double shot of Espresso.

Foreword by Michael Fogus. Speaking JavaScript: An In-Depth Guide for Programmers. Airbnb/javascript. Resources for Staying on Top of JavaScript - Tuts+ Code Article. Last year, I wrote about and recommended some great resources for getting good with andJavaScript.

Resources for Staying on Top of JavaScript - Tuts+ Code Article

A year is a long time in Internet terms and I figured now was a good time for a refresh. JavaScript continues to explode in terms of adoption and being fully embraced, not only in the browser but also on the server. So it's about time we revisit the list and update it with good places to stay current. With JavaScript's continued adoption rate, there's been an explosion of books but from what I've seen, only a small percentage are offering new and interesting reading material. Here are the ones I've enjoyed so far: I'm keeping this one on the list because I honestly haven't seen a new book that so thoroughly covers the JavaScript language like Nicholas' does.

There's no argument that leveraging good design patterns helps in building maintainable code. One of the consistent issues developers face with JavaScript is the concept of object-oriented programming. Dr. Don't let the name fool you. jQuery Anti-Patterns and Best Practices - Tuts+ Code Tutorial. A long time ago, in a galaxy far, far away, JavaScript was a hated language.

jQuery Anti-Patterns and Best Practices - Tuts+ Code Tutorial

In fact, "hated" is an understatement; JavaScript was a despised language. As a result, developers generally treated it as such, only tipping their toes into the JavaScript waters when they needed to sprinkle a bit of flair into their applications. Despite the fact that there is a whole lot of good in the JavaScript language, due to widespread ignorance, few took the time to properly learn it. Instead, as some of you might remember, standard JavaScript usage involved a significant amount of copying and pasting. William Malone { Articles } Javascript Interview Questions. Dos and Don’ts in JavaScript. A few best practices for when you’re learning the language With every programming language, there’s a list of do’s and don’ts and JavaScript is no exception. Some of these best practices are there for your protection (like always always always using semi-colons!) JavaScript’s Apply, Call, and Bind Methods are Essential for JavaScript Professionals.

View Source...learn to create the web. Native HTML5 Drag and Drop. Introduction. HTML Audio/Video DOM Reference. JavaScript Kit Advanced JavaScript Tutorials. Lynda.com search. Highest Voted 'javascript' Questions - Page 2. JavaScript Developer Center. Yahoo! Language centers have been deprecated. If you have any concerns or questions, please don't hesitate to contact us in General Discussion at YDN forum. JavaScript. JavaScript (JS) is a lightweight, interpreted, programming language with first-class functions. While it is most well-known as the scripting language for Web pages, many non-browser environments also use it, such as node.js and Apache CouchDB.

JS is a prototype-based, multi-paradigm, dynamic scripting language, supporting object-oriented, imperative, and declarative (e.g. functional programming) styles. Read more about JavaScript. This section of the site is dedicated to the JavaScript language itself, and not the parts that are specific to Web pages or other host environments. For information about APIs specific to Web pages, please see Web APIs and DOM.