Answers for "New JSDOM and querySelector elems textContent"

0

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"
Posted by: Guest on May-14-2021

Code answers related to "Javascript"

Browse Popular Code Answers by Language