By Jacek Schae

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

Image

Collections

Image

Functions

Image

Flow Control

Image

Truthiness

Image

State

Image

Interop

Image

Here are those code examples:

JavaScript Examples

ClojureScript 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.