Skip to content

Category Archives: Javascript

JavaScript Null Checks and Type Coercion

There are many discussions of JavaScripts type coercion at work, and many examples of the distinction between undefined and null. This becomes very important when performing checks for null and undefined. Here’s an easy summary: JavaScript distinguishes between null, which is an object of type ‘object’ that indicates a deliberate non-value, and undefined, which is an object [...]

JavaScript Unit Testing

TechTalk: Testing Rich Client Web Applications by Jeff Hemminger from Object Partners on Vimeo.

Headless Javascript Unit Testing

I gave a presentation at work a couple of months ago covering JavaScript scoping considerations for a team of Java developers new to JavaScript. During the presentation, I used Rhino to run the examples. I have seen other projects that use Rhino for unit testing, but they seemed a little heavy weight for what I [...]