Posts by dsmoreira • 56 points
1 post
-
4
votes4
answers150
viewsA: Basic JS exercise: simple text search
The problem is on this line: var adiction= myName.length + x; Whereas the index starts from 0, in a string of size 5 you will get indexes from 0 to 4. So if you add the size of the string you will…
javascriptanswered dsmoreira 56