Run ❯
Get your
own
website
×
Change Orientation
Save Code
Change Theme, Dark/Light
Go to Spaces
JavaScript String Methods
The slice() method extract a part of a string and returns the extracted parts in a new string: