CreatextNode JavaScript

let ex = document.createElement("h2");
let text = document.createTextNode("Hello");
ex.appendChild(text);
Haddada Ahmed