Given a sentence, a word, and a replacement word, replace all instances of the word in the sentence with the replacement word.
// input:
const s = 'The gecko climbs on the ceiling, the gecko climbs on the wall', w = 'gecko', r = 'lizard'
// output:
'The lizard climbs on the ceiling, the lizard climbs on the wall'
(Ctrl + ')
Loading...
/* output */
Next(Ctrl + y)