It's funny how we came around to JSSS, and it's now everywhere: from CSS-in-JS to web components coding their CSS in strings inside Javascript
I've looked up some JSSS code examples, and it seems like it's pretty much the only type of code where the "with" keyword makes sense: tags.H1.color = "red"; tags.p.fontSize = "20pt"; with (tags.H3) { color = "green"; } with (tags.H2) { color = "red"; fontSize = "16pt"; marginTop = "4cm"; }
var values = [];
for (var i = 0; i
This would log 3, 3 times. The usual fix (before the variety of modern ways) was to use an IIFE in the first loop: for (var i = 0; i
Alternatively, this works: for (var i = 0; i