javascript:( function(){ document.querySelectorAll('#main a').forEach( function(element, index) { console.log("test"); } ); } )();