Answers for "jquery append after number of chars in string"

0

jquery append after number of chars in string

var str = "1100";

var result= str.substring(0,2) + ":" + str.substring(2);

console.log(result)
Posted by: Guest on July-27-2021

Code answers related to "Javascript"

Browse Popular Code Answers by Language