changeset 3 | 41300fa6a67c |
2:56cd8111b7f7 | 3:41300fa6a67c |
---|---|
1 function bar() { |
|
2 var x = 1; |
|
3 var y = 2; |
|
4 return x + y; |
|
5 } |
|
6 |
|
7 function foo(a, b, c) { |
|
8 var i = a + bar(); |
|
9 var j = b - bar(); |
|
10 var k = c * bar(); |
|
11 return Math.cos(i) + Math.sin(j) - Math.atan(k); |
|
12 } |
|
13 |
|
14 var first = foo(1, 2, 3); |
|
15 var second = foo(4, 5, 6); |
|
16 print("first was:", first, ", and second was:", second); |
|
17 |