---
title: "Discussion on \"JavaScript: replace()\" | Hashnode"
description: "Discussion on \"JavaScript: replace()\". I always forget that replace() exists. And when I do remember, I can't work out how to use it. Until recently...\nWhat is it?\nIt pretty much does what it says on the tin: you can use it to replace a string with another string. Or part of a string with..."
url: "https://hashnode.com/posts/javascript-replace/5fb1166503f7294d0e3a8319"
---

[Feed](https://hashnode.com/feed) /

Discussion

# [JavaScript: replace()](https://blog.nicm42.me.uk/javascript-replace?utm_source=hashnode&utm_medium=feed)

I always forget that replace() exists. And when I do remember, I can't work out how to use it. Until recently... What is it? It pretty much does what it says on the tin: you can use it to replace a string with another string. Or part of a string with...

Nov 15, 2020 · 4 min read · blog.nicm42.me.uk  
Read the article

-   [#javascript](https://hashnode.com/tag/javascript)

## Written by

[Nic](https://hashnode.com/@nicm42)

@nicm42 · England

  
[View profile](https://hashnode.com/@nicm42)

This week I learnt...

Front End Developer. I like problem solving and making things pretty. I also like red.

## Responses

Markdown supported · ⌘↵ to post

No responses yet.
