Element aus String JavaScript ersetzen
var string="hollo"
console.log(string.replace(/o/g,'P'))
//replace o with P
var string="hollo"
console.log(string.replace(/o/g,'P'))
//replace o with P
var string="hollo"
console.log(string.replace(/o/g,'P'))
//replace o with P