Logical question athira mam

How to find the sum of all elements of a given array in JavaScript ?

using function we will find