comparison: test.js
test.js
- changeset 0
- b2e55f320d48
equal
deleted
inserted
replaced
|
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)); |