Skip to content

Commit 1f034ac

Browse files
committed
add two functions
1 parent 1846cb0 commit 1f034ac

File tree

2 files changed

+13
-0
lines changed

2 files changed

+13
-0
lines changed

print_array.js

Whitespace-only changes.

printsum.js

+13
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
var print_sum=function() {
2+
sum = 0;
3+
for(i=0;i<=255;i++) {
4+
console.log("New Number: " + i, "Sum :" + (sum += i));
5+
}
6+
}
7+
8+
print_sum();
9+
10+
11+
12+
13+
// routine functuons and methods are the samething. parameters aNd arguments are the samething. methods are attached to the object. libray pre complied

0 commit comments

Comments
 (0)