I seem to struggle with answering this question withing the following link : https://theplan.co.uk/support-applicant/
Use querySelector for getting the tag, and innterText or textContent for getting the right content of the tag (with the current html both return the same).
console.log('innerText', document.querySelector('.values').innerText);
console.log('textContent', document.querySelector('.values').textContent);
<p>We're looking for someone to join our growing Customer Support team! <span class="values">Obsessing over our users</span> is one of the key Hotjar values, so you'll help us continue to deliver outstanding support.</p>
Two possibilities that come to mind immediately:
querySelector and getElementsByClassName
Like @Totati, I would also prefer the querySelector.
document.querySelector('.values').innerText
// output: "Obsessing over our users"
elem = document.getElementsByClassName('values')[0].innerText
// output: "Obsessing over our users"