EasyRememberArrays & StringsMultiple Choice

What does nums.slice(1,3) return for nums = [10,20,30,40,50]?

Remember Tests recall of fundamental facts and definitions.

Answer Options

A[10,20,30]
B[20,30]
C[20,30,40]
D[10,20]

Want to see the correct answer?

Get the answer with a detailed explanation, plus practice 34+ more Arrays & Strings questions with adaptive quizzes and timed interviews.

See the Answer on Guru Sishya →

This question is from the Arrays & Strings topic (Data Structures).

More Arrays & Strings Questions