summaryrefslogtreecommitdiffstats
path: root/devtools/client/debugger/test/mochitest/examples/math.min.js
blob: f4b379bd1e5999b64b8937427fe6b6f2d5cfd07b (plain)
1
2
3
function add(a,b,k){var result=a+b;return k(result)}function sub(a,b,k){var result=a-b;return k(result)}function mul(a,b,k){var result=a*b;return k(result)}function div(a,b,k){var result=a/b;return k(result)}function arithmetic(){
  add(4,4,function(a){
    sub(a,2,function(b){mul(b,3,function(c){div(c,2,function(d){console.log("arithmetic",d)})})})})};