/ittf/models/cheatsheets/js/t/function.ittf.ittf (primary)
edit
1 element function
2 tag function, =>, m
3 ast FunctionDeclaration, FunctionExpression
4 category function-statements
5 item
6 title Function with no params
7 ittf
8 function sayHello
9 log 'Hello'
10 item
11 title Function with unchecked params
12 ittf
13 function sayHello
14 param name
15 log 'Hello ' + name
16 item
17 title Function with checked params
18 ittf
19 function sayHello
20 string name
21 log 'Hello ' + name
22 item
23 title Function with checked params and callback
24 ittf
25 function sayHello
26 string name
27 callback
28 log 'Hello ' + name
29 item
30 title Function with checked params and callback
31 ittf
32 function sayHello
33 string name
34 any greetings
35 callback
36 log 'Hello ' + name