This variable stores information about all values that we pass during the invocation of the function.
As you can see using arguments we can get data about how many arguments were passed and what were their values.
In addition, we have the option of setting default values for each of them. We will slightly modify the code.
Now, when we invoke the function, and don't pass the value of the job argument, by default we will get a string unemployed
Here, the hoisting is doing a job.
Finally, I would like to mention one more thing,the spread.
As you can see, we added another argument named otherArguments and preceded it with three dots.
By doing this, we can pass any number of arguments that will be kept in the array.
Since I intend to spend more time on the ES6 features like spread in future posts, we will stop here and continue later on.
I will want to present the Immediately Invoked Functions Expressions (IIFEs) that are loved by all.