When I run this code on console its result is undefined
(function test (arguments) {
console.log(arguments[0]);
})(100);
But when I change arguments to a its result is 100
(function test (a) {
console.log(arguments[0]);
})(100);
Why? I googled and read MDN but can't figure out why first is undefined and second is 100.
function test () {....argumentsitself is what you want.