You have an array [ 1, 9, 17, 22 ]. Add the all elements
of this array and give output. Do this using for loop
&
array.reduce()
method.
problem provider : https://drive.google.com/file/d/1XcvIBe_rJlr6GY2rTnHlbIluTABXNhp7/view
You have an array [ 1, 9, 17, 22 ]. Add the all elements
of this array and give output. Do this using for loop
&
array.reduce()
method.
problem provider : https://drive.google.com/file/d/1XcvIBe_rJlr6GY2rTnHlbIluTABXNhp7/view