i'm trying to find the sum of elements in array my input is : 1 2 3 4 5 the output should be : 15 the output i receive : 012345
<html>
<head>
</head>
<body>
<script>
var numbers=[];
var sum=0;
for (var i=0;i<5;i++)
{
numbers.push(prompt('Enter Your Numbers'));
sum += numbers[i];
}
function getSumOfArray() {
return sum;
}
document.write("The Sum of Array: "+getSumOfArray()+"<br />");
</script>
</body>
</html>