I have a string, let\'s say Hello world and I need to replace the char at index 3. How can I replace a char by specifying a index?
Hello world
var str = \"h
var str = "hello world"; console.log(str); var arr = [...str]; arr[0] = "H"; str = arr.join(""); console.log(str);