Created
September 25, 2019 17:21
-
-
Save niktariy/a200cd3ff9248e02ca0332609e7f8237 to your computer and use it in GitHub Desktop.
Function overloading results
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
average(); // 0 | |
average('3o', 4, 5); // NaN | |
average('1', 2, '3', 4, '5', 6, 7, 8, 9, 10); // 5.5 | |
average(1.75, 2.25, 3.5, 4.125, 5.875); // 3.5 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment