ExamVeda
Login
Home
This question belongs to Javascript Classes And Modules
Classes and Modules
?

Consider the following code snippet
[x,y]=[y,x];
What is the result of the above code snippet?

Answer & Solution
Correct Answer: Option C
The above code snippet swaps the value of the two variables.
Examveda
Question posted by Examveda
Community

Join the Discussion

No comments yet Be the first to discuss this question.