Modifying HTML Content and Attributes

What's the difference between these two approaches to changing an image source?
const img = document.querySelector('img');
img.setAttribute('src', 'newImage.jpg');
img.src = 'newImage.jpg';
Next Question (8/20)