substr fo r js code example Example: javascript substring // zero-based index, 'end' is excluded from result myString.substring( start, end )