+ 2
Please Help me understand this code
I am learning JavaScript as a beginner. I tried a lot to understand how actually the the result comes 7?? https://code.sololearn.com/WwENJ0HVvgi6/?ref=app
6 odpowiedzi
+ 10
The search syntax secahe for index and sololearn start with the 7 index so it sayd 7
+ 5
SOUPTIK NATH Both returns same value but you cannot take Regular Expression as an input for search in indexOf function.
+ 1
Tom Joney (TheCoder) What is the difference between string search and index of?
0
Thanks mate. I got my answer. It's search () method which search "sololearn" string number. 'Sololearn' was on 7th string. That's why the result is 7.
0
can anyone help me with that, please?
I want to get the Id text just if the condition is true but it's viewed in all the conditions
https://code.sololearn.com/W7HsGLECMR0Z/#