What's the output?
function getAge(...args) {
console.log(typeof args);
}
getAge(21);You missed this one before
The rest parameter (...args) lets us "collect" all remaining arguments into an array. An array is an object, so typeof args returns "object"
Question 19 · see the original (opens in a new tab)
or press Enter