3 ms·
If you do multi line strings you could probably do it in a smarter way. Examples: appendChild instead of innerHTML .html file instead of html inside a .js file
by z3t4 12y ago
If you do multi line strings you could probably do it in a smarter way. Examples:
appendChild instead of innerHTML
.html file instead of html inside a .js file.
.css file instead of css inside a .js file.
It can get very messy if you store "data" inside JS. Especially if you store markup or styling in the JS.