New course! Every coder should learn Generative AI!
Try a free lesson+ 1
Users input should be displayed inside heading ,how can i do that?
2 Answers
+ 3
document.write("<h1>"+x+"</h1>")
or use an ES6 template
document.write(`<h1>${x}</h1>`)
+ 1
thanks