FazBrowse GitHub Viewer
|
Trending
|
URL:
|
Home
Tools:
[Download Repo ZIP]
[View Raw Code]
[Original HTTPS Page]
javascript50programs/sumOfnumFromArrayNum.js at master · divyahk73/javascript50programs · GitHub
divyahk73
javascript50programs
Repository navigation
Code
Issues
Pull requests
Actions
Projects
Security and quality
Insights
Expand file tree
Breadcrumbs
javascript50programs
/
sumOfnumFromArrayNum.js
Copy path
More file actions
More file actions
Latest commit
History
History
History
6 lines (6 loc) · 156 Bytes
Breadcrumbs
javascript50programs
/
sumOfnumFromArrayNum.js
Copy path
File metadata and controls
6 lines (6 loc) · 156 Bytes
Raw
Copy raw file
Download raw file
Open symbols panel
Edit and raw actions
1
2
3
4
5
6
var
array
=
[
1
,
2
,
3
,
4
]
;
var
sum
=
0
;
for
(
let
i
=
0
;
i
<
array
.
length
;
i
++
)
{
sum
=
sum
+
array
[
i
]
;
}
console
.
log
(
`total sum of numbers present in array =
${
sum
}
`
)
;
Back
|
FazBrowse Home
|
New Git URL