JavaScript Span contendo texto

const box = document.getElementById('box');

if (box.textContent.includes('five')) {
  console.log('✅ five is contained in span');
} else {
  console.log('⛔️ five is NOT contained in span');
}
Daniel Wild