I want to put the below html code in my javascript function. I don\'t want to put it all next to each other. Is it possible to the code in the same way as how it is in html? Cod
Generating html from javascript directly ties logic and presentation together. It also garbles your code.
You can use a javascript templating engine like pure to get a clear separation of logic and presentation.