Q. What will be the output of the following code snippet?

Code:
a = [1, 2, 3, 4, 5];
print(a.slice(2, 4));
  • (A) 3, 4
  • (B) 2, 3
  • (C) 3, 4, 5
  • (D) 2, 3, 4
πŸ’¬ Discuss
βœ… Correct Answer: (A) 3, 4

You must be Logged in to update hint/solution

πŸ’¬ Discussion


πŸ“Š Question Analytics

πŸ‘οΈ
233
Total Visits
πŸ“½οΈ
4 y ago
Published
πŸŽ–οΈ
Admin
Publisher
πŸ“ˆ
94%
Success Rate