Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

insert a string in another js

const insertString= (initialString, index, stringToInsert)=> initialString.slice(0, index+1)+ stringToInsert+ initialString.slice(index+1, initialString.length)
 
PREVIOUS NEXT
Tagged: #insert #string #js
ADD COMMENT
Topic
Name
9+9 =