Hello World by kwSeo and Scala
03 May 2017Hello Scala!
object HelloWorld {
def main(args: Array[String]): Unit = {
println("Hello World!!")
}
}
object HelloWorld {
def main(args: Array[String]): Unit = {
println("Hello World!!")
}
}
// Example can be run directly in your JavaScript console
// Create a function that takes two arguments and returns the sum of those arguments
var adder = new Function("a", "b", "return a + b");
// Call the function
adder(2, 6);
// > 8