If I have:
var e = "String";
var f = e.split('');
var d = f;
d += f[2].toUpperCase();
/* d + = f[2].toUpperCase().split(''); *///Segundo intento
console.log(d.join(''));
How can I return the string as 'StRing' and not as 'StringR'?
and second, because the method join()
, does not work correctly?