by 0942v8653 · 9y ago · 0 comments
var e = document.getElementsByClassName('markup--strong');for (var i = 0; i < e.length; i++) {e[i].style.fontWeight = 'normal'} for (let a of document.querySelectorAll('a')) { a.style.fontWeight = 'normal' }
Alternatively, you can use the more functional: Array.from(document.querySelectorAll('a')).map(a => a.style.fontWeight = 'bold')
If your browser supports the spread operator you could equivalently do: [...document.querySelectorAll('a')].map(a => a.style.fontWeight = 'bold')