Get index js. Indexof python string. split js. s.index(str, [start],[end]). find js.