Posts by Antonio celso vieira • 49 points
1 post
-
4
votes1
answer9032
viewsQ: How to pass an array as a parameter to function?
How do I pass an array as a parameter to a function? This way I did not work. var arr = [7,4,2,12,10,9,17,20]; function soma(num1,num2) { resul = num1 + num2; return resul; }…
javascriptasked Antonio celso vieira 49