Javsacript Split String an der Position

let hey="helloworld";
let index=5;
hey.substring(0, index);//hello
hey.substring(index);//world
Friendly Hawk