diff options
| -rw-r--r-- | challenge-122/karishma/js/ch-1.js | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/challenge-122/karishma/js/ch-1.js b/challenge-122/karishma/js/ch-1.js new file mode 100644 index 0000000000..c6be964b11 --- /dev/null +++ b/challenge-122/karishma/js/ch-1.js @@ -0,0 +1,6 @@ +let input = [10,20,30,40,50]; +let sum = 0; +for (let j = 1; j <= 5; j++) { + sum += input[j-1]; + console.log(sum/j); +}
\ No newline at end of file |
