Advertising

<script>
    let text = document.querySelector('.text-1');
    console.log(text.style);
    
    //text1
    text.addEventListener('mouseover', function(){
        //alert('Mouse over!');
        text.style.fontStyle = "Italic";
        text.style.fontFamily = "Georgia";
    });
    
    text.addEventListener('mouseout', function(){
        //alert('Mouse out!');
        text.style.fontStyle = "normal";
        text.style.fontFamily = "Arial";
    });
</script>