Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

how to sum up the first 2 elements in an array javascript

1. This is normal text
2. This is a list item
 function balancedSums(arr) {
    // Write your code here

}
balancedSums([1,2,3,3])
        Skip a line and indent eight spaces.
        Eight spaces will trigger the code block.
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #sum #elements #array #javascript
ADD COMMENT
Topic
Name
4+3 =