For one of the basic algorithm challenges I would like to split a string into two parts using slice. I don’t want to use anything else, I’m determined to do it my probably very complex way!
So if I say
let str = ‘abcdef’;
let newStr = str.slice(1, str.length);
I get ‘bcdef’, but my brain is fried and I can’t work out for my life how to get ‘a’ using slice.