I am attempting to include a string inside a loop within another string, but I keep encountering an error...
This is what I have tried:
var string = "\
<select>\
"
for (let i = 0; i < 5; i++) {
"\
<option></option>\
"
}
"\
</select>\
";
My desired output should be as follows:
<select>
<option></option>
<option></option>
<option></option>
<option></option>
<option></option>
</select>