Insert
Inserts a substring into another string at a specified position.
Method Signature
Arguments
Argument
Type
Required
Description
Default
substring
string
true
The string to insert.
string
string
true
position
integer
true
The position at which to insert the string.
Examples
Simple insert function example
To add substring on prefix of the given string
Result: Google chrome browser
Simple insert function example with position
To add substring on suffix of the given string
Result: New private mozilla firefox
Additional Examples
Related
Last updated
Was this helpful?