Fri, 15 Oct 2010 15:17:17 +0100
Initial commit
0 | 1 | |
2 | function hello(i) | |
3 | { | |
4 | var foo = i; | |
5 | if(foo == 1) | |
6 | return "Hello world! " + foo; | |
7 | else if(foo == 2) | |
8 | return "Haha!"; | |
9 | else | |
10 | return "Goodbye!"; | |
11 | } | |
12 | ||
13 | print(hello(1)); | |
14 | print(hello(2)); | |
15 | print(hello(3)); |