Question: Write a JavaScript including statements for variable declaration and assignment that will calculate and print the sum of the integers from 1 to 10. Use
Write a JavaScript including statements for variable declaration and assignment that will calculate and print the sum of the integers from 1 to 10. Use the while statement to loop through the calculation and increment statements. The loop should terminate when the value of variable x becomes 11.
Notes:
You must copy and paste the HTML and javascript as your answer for this question. DONT take screenshots for your HTML and javascript. It must be editable script.
Take a screenshot for your filled form and paste it as a part of your answer.
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
