Can you give me feedback about the implementation idea and code?
So, let's say that in index.html I have the following code into body section.
The content of the main.js file is the following:
I know that using document.write it is not a smart thing at all. I'm sure that other things are faulty, but I'm newbie and I'm looking for your feedback.