Expert Developer JavaScript Question:

Download Job Interview Questions and Answers PDF

What is unshift method in JavaScript?

Expert JavaScript Developer Interview Question
Expert JavaScript Developer Interview Question

Answer:

Unshift method is like push method which works at the beginning of the array. This method is used to prepend one or more elements to the beginning of the array.

Download Expert JavaScript Developer Interview Questions And Answers PDF

Previous QuestionNext Question
Which keywords are used to handle exceptions?Explain window.onload and onDocumentReady?