How do I turn this line of jQuery:
var newFont = jQuery('h1').css('font-family');
into modern JS. Thought something like this would work:
let newFont = document.querySelectorAll('h1').style.fontFamily = "Montserrat, Roboto, Helvetica Neue, Arial, sans-serif";
but instead get error TypeError: Cannot set property 'fontFamily' of undefined