b = Button(); hi = function () {print("hi!");} b.onclick(hi);
1
2
3
b
=
Button
();
hi
=
function
() {
print
(
"hi!"
);}
b
.
onclick
(
hi
);
Output