The original string to modify.
The zero-based position in the string where the replacement should begin.
The string to insert at the specified index.
Optional
length: number(Optional) The number of characters to replace starting from the index. If not provided, replaces only one character.
A new string with the specified portion replaced by the replacement string.
Replaces a portion of a string at the specified position with a replacement string.
The original string to modify.
The position or range within the string where the replacement should occur.
The string to insert at the specified position.
A new string with the specified portion replaced by the replacement string.
Replaces a portion of the input string at the specified index with the given replacement string.