Obtenez le texte dans un paragraphe


const para=document.querySelector('p');
console.log(para.innerText); //innerText is a property of the para-variable NOT a method. (methods have())
//to get the property of a variable, put a period after the variable name.
Meandering Meerkat