Hi i am working in java script i have a string
var data = 'http://baab.bh/media/catalog/product/cache/1/image/9df78eab33525d08d6e5fb8d27136e95/t/e/test.jpg';
i want to replace /image/ into 'image/440x600' i am using this function
.replace()
but its not working here is my code
var data ='http://baab.bh/media/catalog/product/cache/1/image/9df78eab33525d08d6e5fb8d27136e95/t/e/test.jpg';
data.replace('/image/', '/image/440x600/');
console.log(data);
its showing same not replacing /image/ into 'image/440x600'.