What is the use of the slice() method in JavaScript?

What is the use of the slice() method in JavaScript?