Run ❯
×
Change Orientation
Save Code
Change Theme, Dark/Light
Go to Spaces
JavaScript Strings
The slice() Method
slice() extracts a part of a string and returns the extracted part: