Archive for the ‘jamesh’ Category

What Is Event Bubbling in JavaScript? Event Propagation Explained

Posted on: No Comments
Event bubbling is a term you might have come across on your JavaScript travels. It relates to the order in which event handlers are called when one element is nested inside a second element, and both elements have registered a listener for the same eve...

How to Make a Simple JavaScript Quiz

Posted on: No Comments
"How do I make a JavaScript quiz?" — this is one of the most common questions I hear from people who are learning web development, and for good reason. Quizzes are fun! They are a great way of learning about new subjects and allow you to engage your ...

A Guide to Testing and Debugging Node Applications

Posted on: No Comments
A Guide to Testing and Debugging Node Applications — is an excerpt from Manning's Testing Node Applications. Thoroughly revised in its second edition, this book guides you through all the features, techniques, and concepts you'll need to build produc...

Getting Started with AnyChart — 10 Practical Examples

Posted on: No Comments
If your website is data-intensive, then you will need to make that data easy to visualize, normally by means of a JavaScript charting library. However such libraries a dime a dozen and they all have slightly different capabilities, so how do you know w...

How to Write Shell Scripts with JavaScript

This week I had to upgrade a client's website to use SSL. This wasn't a difficult task in itself — installing the certificate was just the click of a button — yet once I had made the switch, I was left with a lot of mixed content warnings. Part of ...

JavaScript Testing Tool Showdown: Sinon.js vs testdouble.js

Posted on: No Comments
When unit testing real-world code, there are many situations that make tests hard to write. How do you check if a function was called? How do you test an Ajax call? Or code using setTimeout? That's when you use test doubles — replacement code that ma...

Tips and Tricks for Debugging Electron Applications

Posted on: No Comments
Tips and Tricks for Debugging an Electron Application is an excerpt from Electron in Action, a step-by-step guide to building desktop applications that run on Windows, OSX, and Linux. If you'd like to follow along with the techniques demonstrated in th...

Create Your Own Yeoman-Style Scaffolding Tool with Caporal.js

Posted on: No Comments
Starting a new project (especially as a JavaScript developer) can often be a repetitive and tedious process. For each new project, we normally need to add a package.json file, pull in some standard dependencies, configure them, create the correct dir...

Back to Basics: JavaScript Operators, Conditionals & Functions

Posted on: No Comments
Table of Contents JavaScript Operators Assignment Operators Arithmetic Operators Addition Subtraction Multiplication Division Modulus Increment Decrement Comparison Operators Equal Strict Equal Not Equal Strict Not Equal Less Than Less Than or Equal To...