javascript
// Get text from a paragraph by class name
const paragraphs = document.getElementsByClassName('paragraph');
const paragraphText = paragraphs[0].textContent;
console.log(`Paragraph Text (by Class Name): ${paragraphText}`);