let element = document.querySelectorAll("p")[0];
element.innerHTML="new text";
element[0].innerHTMl="new text";
$i = 9;
while($i <= 40){
$summa[] = $i += 1;
$i++;
}
echo implode(' + ',$summa).' = '.array_sum($summa);
10 + 12 + 14 + 16 + 18 + 20 + 22 + 24 + 26 + 28 + 30 + 32 + 34 + 36 + 38 + 40 = 400