JSFiddle - React, Tailwind, and code Playground
HTML
<img src="/7290/9200572193_f95fb66c50_m.jpg" />
JavaScript
$("img").each(function(i) {
$(this).prop("src", $(this).prop("src").replace('_m.jpg', '_b.jpg'));
});
/*-------------------------*/
$('body').append($('<p />', { text: 'Img src = ' + $("img").prop("src") }));