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
Labby -
Diana -
Valentin Turbins -
Vipin Chandra -
Top comments (1)
C - because args is an object and if we want type of 21 we can use console.log(typeof args[0]);