Questions Concepts
GitHub icon


Scala.js - Programming language

< >

Scala.js is an open source programming language created in 2013 by Martin Odersky.

Source code:
git clone
#347on PLDB 10Years Old

Scala ( SKAH-lah) is a general-purpose programming language providing support for functional programming and a strong static type system. Designed to be concise, many of Scala's design decisions aimed to address criticisms of Java.Scala source code is intended to be compiled to Java bytecode, so that the resulting executable code runs on a Java virtual machine. Scala provides language interoperability with Java, so that libraries written in both languages may be referenced directly in Scala or Java code. Read more on Wikipedia...

Example from the web:
class Person(val firstName: String, val lastName: String) { def fullName(): String = s"$firstName $lastName" }
Example from Wikipedia:
val urls = List("", "") def fromURL(url: String) = .getLines().mkString("\n") val t = System.currentTimeMillis() println("time: " + (System.currentTimeMillis - t) + "ms")

Language features

Feature Supported Token Example
Print() Debugging println

View source

- Build the next great programming language · Search · Add Language · Features · Creators · Resources · About · Blog · Acknowledgements · Queries · Stats · Sponsor · Traffic · Traffic Today · Day 305 · · Logout