📜  切片 javascript 代码示例

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

代码示例6
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 */