8000 Revision of sum of array · anshi-the-coder/Javascript@d9d2874 · GitHub
[go: up one dir, main page]

Skip to content

Commit d9d2874

Browse files
Revision of sum of array
1 parent 5208f55 commit d9d2874

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

sumOfArr.js

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
let a=[1,3,2,4,3,5]
2+
let sum=0
3+
for(let i=0;i<a.length;i++){
4+
sum=sum+a[i];
5+
}
6+
console.log(sum)

0 commit comments

Comments
 (0)
0