Full Stack interview question

what is shift and unshift method