1. <script><br /> functiongetSum (num1,num2) {<br /> varsum = 0;<br /> for (i = num1; i <= num2; i++) {<br /> sum += i;<br /> }<br /> console.log(sum);<br /> }<br /> getSum(1,100);<br /> </script>

    .