slice(0, 1) --> "T"
slice(0, 2) --> "Th"
slice(0, 3) --> "Tha"
slice(0, 4) --> "Than"
slice(0, 5) --> "Thank"
slice(3, 7) --> "nk y"
More than 5 years have passed since last update.
Register as a new user and use Qiita more conveniently
- You get articles that match your needs
- You can efficiently read back useful information
- You can use dark theme