function myFunction() {
const a = document.getElementsByTagName('a')[0];
const img = a.getElementsByTagName('img')[0];
a.setAttribute('href', 'https://www.nba.com/lakers');
img.setAttribute('src', 'bryant.jpg');
}