def name = "lady gaga";
def code = 45;
def sleep = false;While var is for declaring a variable that may be change over program running.
var name;
var code;
var sleep;To display var or def, use curly bracket:
println("Hello, {name}");GMgKe586q6suSQnyqZLlGCooeWM
No comments:
Post a Comment