
Raw Javascript

James looks at three cunning things you can do with regular expressions, that provide neat solutions to some very sticky problems.Read More

James Edwards looks at some DOM3 properties that simplify node relationships, by focusing only on element nodes and ignoring other types.Read More

James Edwards gets excited about the new MutationObserver API, and talks about how and why it's come to replace Mutation Events.Read More

James Edwards looks at two JavaScript shorthand expressions that rely on automatic type conversion, and discusses when they are - and are not - a good idea.Read More
Date and time values are used for many important functions such as searching, validation, and report generation. There is no standard format for dates in web applications, as people in different time... Read More
For the eighth article in this small-and-sweet functions series, I’ll be looking at a function called ancestor(). As the name suggests, this function gets a reference to a given node’s... Read More
In one of my first articles I asserted that, while the JavaScript core continues to be improved with new methods, it still misses some useful ones. Coming from a PHP background, one of the things I... Read More
With the rise in mobile devices and tablets, web applications are frequently being loaded in slow and low memory environments. When building a web application, one may consider making design choices... Read More
Arrays are a fundamental data structure in many programming languages, and JavaScript is no exception. To abstract away many of the details of working with arrays, JavaScript provides a collection of... Read More
Data types are an essential component of every programming language, and numbers are perhaps the most important of all data types. After all, computers are really just expensive calculators. Like any... Read More
Variable declarations are one of the most basic aspects of any programming language. However, JavaScript has a little quirk, known as hoisting, which can turn an innocent looking declaration into a... Read More
For the seventh article in the small-and-sweet functions series, I’d like you show you a function called abbreviate() — the main purpose of which I’m sure you can guess! It abbreviates... Read More
The <canvas> element, introduced in HTML5, allows developers to dynamically create bit map graphics using JavaScript. In this tutorial you will learn about some of the basic operations... Read More
HTML5 introduces a couple of new attributes for implementing browser-based form validation. The pattern attribute is a regular-expression that defines the range of valid inputs for textarea elements... Read More



