Skip to main content
2 de 2
adicionou 134 caracteres ao conteúdo
user avatar
user avatar

Solução

var string = "aacc";
var final  =  string.substring(0,2) + "bb" + string.substring(2);

Links: http://www.w3schools.com/jsref/jsref_substring.asp

user6026