This method returns the single of value which was removed by it.
var number = [101, 4, 5, 6].shift();
document.write("Removed element is : " + number);
Ask Your Question
Got a programming related question? You may want to post your question here
Programming Answers here