What is the expected behavior of the following code?

What is the expected behavior of the following code?

A . it outputs [1, 3]
B . the code is erroneous and it will not execute
C . it outputs [3, 1]
D . it outputs [4, 2, 0]

Answer: A

Subscribe
Notify of
guest
0 Comments
Inline Feedbacks
View all comments