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
The methods on here are complicated. I would do it this way:
var myString = "this is my string"; myString = myString.replace(myString.charAt(number goes here), "insert replacement here");
This is as simple as it gets.