Q. Which method is used to add an element to the beginning of an array?
β
Correct Answer: (A)
unshift()
Explanation: unshift() adds an element to the beginning of an array.