Scala.js is a compiler that compiles Scala source code to equivalent Javascript code.
Just like regular Scala, Scala.js offers all those fantastic language features that we know and love: generic classes, type inference, traits and objects, case classes and pattern matching, etc. Scala.js is fully interoperable with JavaScript and allows seamless integration with existing JavaScript libraries.