examples/script/qsdbg/example.js
author Eckhart Koeppen <eckhart.koppen@nokia.com>
Mon, 19 Apr 2010 10:15:19 +0300
branchRCL_3
changeset 9 b5b118452c7d
parent 3 41300fa6a67c
permissions -rw-r--r--
a8c775f23625952540b5349744722bcb9e37de45

function bar() {
  var x = 1;
  var y = 2;
  return x + y;
}

function foo(a, b, c) {
  var i = a + bar();
  var j = b - bar();
  var k = c * bar();
  return Math.cos(i) + Math.sin(j) - Math.atan(k);
}

var first = foo(1, 2, 3);
var second = foo(4, 5, 6);
print("first was:", first, ", and second was:", second);