diff --git a/Chapter 12/arguments b/Chapter 12/arguments new file mode 100644 index 0000000..d913305 --- /dev/null +++ b/Chapter 12/arguments @@ -0,0 +1,9 @@ + function showNames() { + let lastOne = ''; + for (let i = 0; i < arguments.length; i++) { + lastOne = arguments[i]; + + } + return lastOne; + } + console.log(showNames("JavaScript","Laurence", "Mike", "Larry"));