js get get atribute code example Example: js getattribute const link = document.querySelector('a'); console.log(link.getAttribute('href'));