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