Elm is a functional language that compiles to HTML, CSS, and Javascript.
Designed for functional reactive programming, Elm makes it easy to create highly interactive applications.
a = b + c
Mouse.position
Mouse.isDown
Window.width
elm --only-js Snake.elm
// get an empty div
var div = document.getElementById('snake');
// embed our Elm program in that div
Elm.embed(Elm.Snake, div);