gecko-dev/js/jsdj/test/sample.js

11 lines
119 B
JavaScript
Raw Normal View History

a=1;
for (i=0; i<10; i++){
a = inc (inc(a));
}
c = a+2;
// Increment function
function inc (b){
return b+1;
}