JSFiddle - React, Tailwind, and code Playground
HTML
<img src="images/image1.jpg" alt="rotating image" width="400" height="300" id="rotator" />
JavaScript
(function () {
var rotator = document.getElementById('rotator');
console.log('src', rotator.src);
})();