String.indexof(string) alguien me explica? | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
0

String.indexof(string) alguien me explica?

para hacer una calculadora con operadores

23rd May 2017, 6:04 AM
Lucas Miñon
Lucas Miñon - avatar
2 Answers
+ 1
Debes preguntar en ingles You must ask in english
23rd May 2017, 6:09 AM
Jordi Montorio Rocafull
Jordi Montorio Rocafull - avatar
0
"abcdefghi".indexof("d") = 3 indexof returns the id place of the char in the string if it found ( be careful: begin 0) else it returns -1 lire below "abcdefghi".indexof("k") = -1
23rd May 2017, 6:20 AM
MBZH31
MBZH31 - avatar