diff --git a/firstToyProblem.js b/firstToyProblem.js index b0873e7..44d4b34 100644 --- a/firstToyProblem.js +++ b/firstToyProblem.js @@ -4,6 +4,16 @@ * without using any pre build in function */ + const arr = [1,10,5,-3,100]; + function minimum(array) { - return; + let num = array[0]; + for(let a = 0;a6 */ function sumPair(array) { - //your code goes here + let objVal = Object.values(array); + let sum =0; + for(let i=0;i