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 .

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
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
