HTML
<h1 id="element"></h1>
<h1 id="element"></h1>
h1#element
let i = 1;
const autowriting = () => {
// put here the element
const element = document.querySelector("#element");
// put here the text
let text = "Want to Auto Write Like These SUB2REKO and Get In Discord"
result = text.slice(0,i)
element.innerText = result
i++
if (i > text.length) {
i = 1
clearInterval(autowritingset)
}}
// 100 is the speed `lower is faster`
const autowritingset = setInterval(autowriting, 100);