function getUserId(...args) {
console.log(typeof args);
}
getUserId(21);
Options -
A) string
B) number
C) object
D) NaN
Reply with correct answer & WHY it is correct answer in comments.
function getUserId(...args) {
console.log(typeof args);
}
getUserId(21);
Options -
A) string
B) number
C) object
D) NaN
Reply with correct answer & WHY it is correct answer in comments.
For further actions, you may consider blocking this person and/or reporting abuse
prodbyola -
Utsho Dey -
jogelin -
Jonathan McIntosh -
Top comments (1)
C - because args is an object and if we want type of 21 we can use console.log(typeof args[0]);