When we do [a,b] is equal to [b,a] then the both array values are swapped then our output will be 10,5
Swaps the values a gets b values, b gets a value 10,5
Please do explain the logic also in the end. It will improve the thinking ability and will be easy to solve other problems as well.😊
Output will be : 10 5
Ans B
Destructuring a b = b a
It's b
D: ReferenceError: Cannot access 'b' before initialization
Let me run
Its B.
B.10,5
10 ,5😂😂😂😂
b
10, 10
@One-Eyepatch