Hey. Can I loop through an array inside a pattern string? For example, there is an array:
"carriers": [ 0: "S7", 1: "SU" ] Which I want to output, for example, in the string:
element.append(` <h2>Carriers:</h2> <div class="carriers"> <img src="/img/carriers/S7.png" /> <img src="/img/carriers/SU.png" /> </div> `); And, yes, I am interested in the solution specifically in the body of append() (the specifics of the problem).