function getAge(...args) {
console.log(typeof args);
}
 
getAge(21);
Click Run to execute JavaScript.
Code runs in an isolated environment.