Run ❯
Get your
own
website
×
Change Orientation
Save Code
Change Theme, Dark/Light
Go to Spaces
JavaScript Strings
The slice() Method
Extract a part of a string and return the extracted parts in a new string: