Canvas Nasal/JavaScript Subset: Difference between revisions

Jump to navigation Jump to search
m
Line 37: Line 37:


|}
|}
<syntaxhighlight lang="nasal">
var new_function =  func(keyword) {
return
  func(name, params, body)
  print("var ", name, "=", keyword, "(",params,")", body);
}
var make_nasal_function = new_function('func');
var test = make_nasal_function(name: "hello", params: "name", body: "print(name);");
</syntaxhighlight>


== Goals ==
== Goals ==

Navigation menu