element.innerHTML=` <p>Today is ${new Date().toDateString()}</p> <p>Random number: ${Math.floor(Math.random() * 100)}</p> `
At that point I think I'd have a skeleton html file that fetches a JS that does it all. I'd take JS with embedded HTML over HTML with embedded JS.
But you can write dreadful code in any language
At that point I think I'd have a skeleton html file that fetches a JS that does it all. I'd take JS with embedded HTML over HTML with embedded JS.