Functions
- function
- return
main() {
var z = add(2, 3);
print(z);
var q = multiply(2, 3);
print(q);
}
num add(num x, num y) {
return x+y;
}
multiply(x, y) => x*y;
Press ← or → to navigate between chapters
Press S or / to search in the book
Press ? to show this help
Press Esc to hide this help
main() {
var z = add(2, 3);
print(z);
var q = multiply(2, 3);
print(q);
}
num add(num x, num y) {
return x+y;
}
multiply(x, y) => x*y;