To print to Console you can use print() Functions.
Inside the String you can reference Properties by using $name.
Print
//DECLARE VARIABLES.
var name = "John"
var age = 20
//DISPLAY VARIABLES.
println("Hello")
print ("$name is $age years old") //John is 20 years old
print (name + " is " + "$age years old") //John is 20 years old