by Jacek Schae

A visual overview of the similarities and differences between ClojureScript and JavaScript

If you ever wondered how different — or similar — ClojureScript and JavaScript are, then this article should help answer this question. And hopefully it’ll surprise you a couple of times.

Code examples are available via GitHub Gist at the bottom of the article.

Basics

Collections

Functions

Flow Control

Truthiness

State

Interop

Here are those code examples:

If you enjoyed this article, and would like to be notified when I release similar stories, consider following me on Medium and Twitter.

Thanks to Brian Craft and Mike Fikes for catching the `cond` error, which has been corrected.