Saturday, January 27, 2018

arguments object

const a = function (a, b) {
    console.log(Object.prototype.toString.call(arguments));
}
a(2, 3)
Output:
[object Arguments]

No comments:

Post a Comment