Oh yes ! thanks ! Now you tell me that I know my ‘solution’ is more complicated and more longer to write.
Because as you said I can just put => return str.slice(0, num) + “…”;
But I just wanna say I am a beginner and sometimes code seems a little bit complicated in my head. And I sometimes It takes times to undertand instructions because my native language is french.
Thank you very much !