📜  js 中的 slice() - Javascript 代码示例

📅  最后修改于: 2022-03-11 15:04:30.558000             🧑  作者: Mango

代码示例5
const string="Hi my name is mezen";
string.slice (2); // return string without the character of index 2;
string.slice (6); // return string without the character of index 6;

string.slice (3,7) /* return 'my na' (m of index 3; a of index 7) including the
                      blank spaces */