Home »
MCQs »
KnockoutJS MCQs
Which of the following method is used to remove and returns the first item from the array?
29. Which of the following method is used to remove and returns the first item from the array?
- Shift()
- Unshift()
- ShiftF()
- First()
Answer: A) Shift()
Explanation:
The shift() method is used to remove and returns the first item from the array.