Nasal Callbacks Explained: Difference between revisions

Jump to navigation Jump to search
no edit summary
m (Use Nasal highlighter)
No edit summary
 
Line 7: Line 7:


var say_hello = func() {
var say_hello = func() {
print("Hello!");
    print("Hello!");
}
};


# to call the function:
# to call the function:
say_hello();
say_hello();
</syntaxhighlight>  
</syntaxhighlight>  


Line 20: Line 20:


(func() {
(func() {
print("Hello!");
    print("Hello!");
}) ();
}) ();


1,375

edits

Navigation menu