# How to replace all dots in a string using JavaScript?

JavascriptObject Oriented ProgrammingFront End Technology

To replace the dots in a string, you need to escape the dot (.) and replace using the replace() method.

## Example

You can try to run the following code to replace all dots in a string −

<!DOCTYPE html>
<html>
</html>