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
Matheus Costa -
Mahmoud EL-kariouny -
Rahul Bagal -
Alvaro Montoro -
Once suspended, shamgurav96 will not be able to comment or publish posts until their suspension is removed.
Once unsuspended, shamgurav96 will be able to comment and publish posts again.
Once unpublished, all posts by shamgurav96 will become hidden and only accessible to themselves.
If shamgurav96 is not suspended, they can still re-publish their posts from their dashboard.
Once unpublished, this post will become invisible to the public and only accessible to Sham Gurav.
They can still re-publish the post if they are not suspended.
Thanks for keeping DEV Community safe. Here is what you can do to flag shamgurav96:
Unflagging shamgurav96 will restore default visibility to their posts.
Top comments (1)
C - because args is an object and if we want type of 21 we can use console.log(typeof args[0]);