Substring in javascript


hello everybody!
i dont know if i’m wrong or it’s the exercice. in this exercice we must find position lettre at the 4 and 7.
For me must write the code like that:
`“wonderful day”.substring(3,6);
And it’s wrong. i found a correct code
``“wonderful day”.substring(3,7);
I understand the 4th letter is 0123 and the 7th 0123456.
i’m lost, thanks for all!


Subtring starts at the first selected index, and goes up to but doesn’t include, the last selected index.


ok thank you so much, i have a better vision of the cuting system.


its really help full to me thanks a lot ,
thanks maoti64