background preloader

Javascript

Facebook Twitter

10 useful libraries for JavaScript developers. Learning how to use JavaScript libraries to create interactivity on a Web browser or making a responsive application is becoming increasingly important.

10 useful libraries for JavaScript developers

Here are ten of the best. JavaScript is the language of the Web that enhances and improves one's Web experience. Whether you are a regular Web user or a seasoned developer, learning how to use JavaScript libraries to create interactivity on a Web browser or making a responsive application is becoming increasingly important. These libraries offer ways of improving a user's experience on a website and they provide rich and interactive features and components that are becoming popular as technology diversifies.

Here I highlight ten tools that you can use to enhance your users' experience on your website. Hammer.js Probably one of the lightest JavaScript libraries around, hammer.js weighs at only 2KB. HTML Canvas Library Even with the new <canvas> element, it may be a little challenging to create animations and visualizations. Hypertree quick tutorial. Posted in: javascript infovis toolkit , visualization , tutorial This tutorial requires you to have read Feeding JSON tree structures to the JIT and on controllers first.

Hypertree quick tutorial

**Note:** I'll be using Mootools for this tutorial. However, this visualization can be used without the Mootools library. You can find a Mootools build in the extras folder of the library. Hi, this is going to be a quick tutorial on how to set the hyperbolic tree up and running. Put this HTML in your page: Note: You'll probably have to change the paths to the css and javascript files. Note: I like the canvas black, just like my coffee. You should see a hypertree up and running (don't worry if it doesn't move, we'll add click events later). Some notes: For more information about what kind of DOM structure the Canvas object creates and what kind of configuration it takes, please see this post, and the Canvas object reference. Customizing the Hypertree Let's add some labels! Online JavaScript beautifier. Learning Javascript with Object Graphs. HEADS UP!

Learning Javascript with Object Graphs

This article was written for an older version of node. More up-to-date information may be available elsewhere. One of the secrets to being a super effective JavaScript developer is to truly understand the semantics of the language. This article will explain the basic elemental parts of JavaScript using easy to follow diagrams. References Everywhere A variable in JavaScript is simply a label that references a value in memory somewhere. Local Variables In the following example, we will create four local variables in the top-level scope and point them to some primitive values: variables.js // Let's create some local variables in the top scopevar name = "Tim Caswell";var age = 28;var isProgrammer = true;var likesJavaScript = true;// Test to see if the two variables reference the same valueisProgrammer === likesJavaScript; JavaScript Closures 101- they're not magic.

JavaScript Closures 101- they're not magic Credits: This tutorial is written by Morris Johns.

JavaScript Closures 101- they're not magic

Morris maintains a personal blog called Developing Thoughts where he can be contacted via. This tutorial explains closures so that a regular programmer can understand them - using working JavaScript code. It is not for gurus nor functional programmers. Closures are not hard to understand once the core concept is grokked. This article is intended for programmers with some programming experience in a main-stream language, and who can read the following JavaScript function: An Example of a Closure Two one sentence summaries:

JSLint,The JavaScript Code Quality Tool. Global Objects. This chapter documents all of JavaScript's standard, built-in objects, including their methods and properties. The term "global objects" (or standard built-in objects) here is not to be confused with the global object. Here, global objects refer to objects in the global scope. The global object itself can be accessed using the this operator in the global scope (but only if ECMAScript 5 strict mode is not used; in that case it returns undefined). In fact, the global scope consists of the properties of the global object, including inherited properties, if any. Other objects in the global scope are either created by the user script or provided by the host application.

Value properties These global properties return a simple value; they have no properties or methods. Function properties These global functions—functions which are called globally rather than on an object—directly return their results to the caller. Fundamental objects Numbers and dates Text processing Indexed collections Reflection. A re-introduction to JavaScript (JS Tutorial) Why a re-introduction?

A re-introduction to JavaScript (JS Tutorial)

Because JavaScript is notorious for being the world's most misunderstood programming language. It is often derided as being a toy, but beneath its layer of deceptive simplicity, powerful language features await. JavaScript is now used by an incredible number of high-profile applications, showing that deeper knowledge of this technology is an important skill for any web or mobile developer. It's useful to start with an overview of the language's history. JavaScript was created in 1995 by Brendan Eich while he was an engineer at Netscape. Several months later, Microsoft released JScript with Internet Explorer 3. Because it is more familiar, we will refer to ECMAScript as "JavaScript" from this point on. Unlike most programming languages, the JavaScript language has no concept of input or output.

Overview. Introduction to Object-Oriented JavaScript. How to Write Maintainable OO JavaScript Code. Writing maintainable Object-Oriented (OO) JavaScript will save you money and make you popular.

How to Write Maintainable OO JavaScript Code

Don't believe me? Odds are that either you or someone else will come back and work with your code. Making that as painless an experience as possible will save time, which we all know equates to money. It will also win you the favor of those for whom you just saved a headache.