Created
January 6, 2019 17:54
-
-
Save oliversd/96c39fd07143d8ded44c6ad3faa0c159 to your computer and use it in GitHub Desktop.
This file contains 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
let scores = [23, 45, 56]; | |
function averageThreeScores(a, b, c) { | |
let sum = a + b + c; | |
return sum/3; | |
} | |
console.log(averageThreeScores(…scores)); // Result 41.333333… |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment