Created
May 26, 2019 20:07
-
-
Save JimRottinger/eb7f5a1a856f235f7ae758f62b4892fe to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
function sumThreeNumbers(num1, num2, num3) { | |
console.log([num1, num2, num3]); //[4,6,10] | |
return num1 + num2 + num3; | |
} | |
const numbers = [4,6,10]; | |
console.log(sumThreeNumbers(...numbers)); //20 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment