New JSDOM and querySelector elems textContent code example
Example: New JSDOM and querySelector elems textContent
const dom = new JSDOM(`<!DOCTYPE html><p>Hello world</p>`);
console.log(dom.window.document.querySelector("p").textContent); // "Hello world"