Returns the index of the first occurrence of val in the string, or 0 if val is not found.
val
val — value to search for.
log "hello world".index("world") // 7
Last updated 4 months ago