An Introduction to Mocha

What is Mocha?

Mocha is a feature-rich JavaScript test framework running on node and the browser, making asynchronous testing simple and fun.

If you're interested in writing tests for your JavaScript code, Mocha is a good way to start.


HTML5 introduces lots of new and exciting things for web authors, among these are new APIs. Here are some of them.


In my last post I wrote about how to detect a JavaScript array, so I thought it would be a good idea to see how jQuery does it.