Is it possible to use Loop or Index to shorten this function ?

$w(“#box1”).style.backgroundColor = “#FFFFFF”;
$w(“#text61”).html = <h1 style='color:#18157C'> ${$w("#text61").text}<h1>;
$w(“#box2”).style.backgroundColor = “#FFFFFF”;
$w(“#text62”).html = <h1 style='color:#18157C'> ${$w("#text62").text}<h1>;
$w(“#box3”).style.backgroundColor = “#FFFFFF”;
$w(“#text63”).html = <h1 style='color:#18157C'> ${$w("#text63").text}<h1>;
$w(“#box4”).style.backgroundColor = “#FFFFFF”;
$w(“#text64”).html = <h1 style='color:#18157C'> ${$w("#text64").text}<h1>;
$w(“#box5”).style.backgroundColor = “#FFFFFF”;
$w(“#text65”).html = <h1 style='color:#18157C'> ${$w("#text65").text}<h1>;
$w(“#box6”).style.backgroundColor = “#FFFFFF”;
$w(“#text66”).html = <h1 style='color:#18157C'> ${$w("#text66").text}<h1>;
$w(“#box7”).style.backgroundColor = “#FFFFFF”;
$w(“#text67”).html = <h1 style='color:#18157C'> ${$w("#text67").text}<h1>;
$w(“#box8”).style.backgroundColor = “#FFFFFF”;
$w(“#text68”).html = <h1 style='color:#18157C'> ${$w("#text68").text}<h1>;
$w(“#box9”).style.backgroundColor = “#FFFFFF”;
$w(“#text69”).html = <h1 style='color:#18157C'> ${$w("#text69").text}<h1>;
$w(“#box10”).style.backgroundColor = “#FFFFFF”;
$w(“#text70”).html = <h1 style='color:#18157C'> ${$w("#text70").text}<h1>;
$w(“#box11”).style.backgroundColor = “#FFFFFF”;
$w(“#text71”).html = <h1 style='color:#18157C'> ${$w("#text71").text}<h1>;

Hi, rafael_delacruz1992 9.

Does the following work for you:

    for (i = 1; i <= 11; i++) {
       $w("#box" + i).style.backgroundColor = "#FFFFFF";
       $w("#text" + i + 60).html = `<h1 style='color:#18157C'> ${$w("#text" + i + 60).text}<h1>`;
     }  

?