Replace function not replacing [duplicate]

Assign the value back into thumb.

thumb = thumb.replace("200.jpg", "640.jpg");

Leave a Comment