css query selector for text code example
Example 1: do some css using js on selector
let myElement = document.querySelector("#superman");
myElement.style.backgroundColor = "#D93600";
Example 2: js queryselector
const content = document.querySelector('.content');
const towns = ['Helsinki', 'Espoo', 'Vantaa'];
towns.forEach(city => {
content.innerHTML += `<p>${city}</p>`;
});