Home »
MCQs »
KnockoutJS MCQs
Which of the following method is used to add a new value to the array's beginning?
27. Which of the following method is used to add a new value to the array's beginning?
- Shift()
- Insert()
- Add()
- Unshift()
Answer: D) Unshift()
Explanation:
Unshift() method is used to add a new value to the array's beginning.