Created
October 19, 2020 00:28
-
-
Save rodolphonetto/de35113ba97c67949aa5151def095316 to your computer and use it in GitHub Desktop.
arguments
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
const printName = function (firstName, lastName) { | |
console.log(arguments[0]) //John | |
console.log(arguments[1]) //Doe | |
} | |
printName('John','Doe') | |
const printName = (name) => `Meu nome é ${name}` | |
console.log(arguments[0]) // arguments is not defined | |
printName('Rodolpho') |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment