New course! Every coder should learn Generative AI!
Try a free lesson0
Replace words in a string
I’ve been given the problem of creating a function in JavaScript that replaces the contents of a string with a random word of my choice. I’m completely stuck on this! Please help!
1 Answer
+ 3
There's replace() function for it